<reponame>ericls/gextractor
from __future__ import print_function
from gextractor.base import BaseExtractor
from gextractor.fields import PQField, PQListField
from six import print_ as print


class PythonDocExtractor(BaseExtractor):

    title = PQField('h1', format='text')
    content = PQField('p')
    functions = PQListField('dl.function', format='element')


b = PythonDocExtractor(
    'https://docs.python.org/3/library/base64.html#module-base64'
)
print(b.title, b.content)
