uvacw / inca

24 stars 6 forks source link

added docstring introspection for the Inca object #262

Closed bobvdvelde closed 6 years ago

bobvdvelde commented 6 years ago

The Inca object now introspects docstrings on creation, e.g.:

# assumes /path/to/inca/ is in PYTHONPATH
from inca import Inca
inca = Inca()
help(inca.scrapers.proceedings_NL)

>Help on function proceedings_NL in module inca:

proceedings_NL(*args, **kwargs)
    Document collected from officielebekendmakingen.nl by scraping 'bladeren' section

help(inca.processing.clean_whitespace)
> Help on function clean_whitespace in module inca:

clean_whitespace(*args, **kwargs)
    multiple whitespaces were folded to single whitespaces