Skip to content

Commit

Permalink
setup: explicit exports through __all__
Browse files Browse the repository at this point in the history
  • Loading branch information
adbar committed Nov 7, 2024
1 parent 623b0ef commit d380400
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions trafilatura/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# -*- coding: utf-8 -*-
"""
Python & command-line tool to gather text on the Web:
web crawling/scraping, extraction of text, metadata, comments.
"""


__title__ = 'trafilatura'
__author__ = 'Adrien Barbaresi and contributors'
__title__ = "Trafilatura"
__author__ = "Adrien Barbaresi and contributors"
__license__ = "Apache-2.0"
__copyright__ = 'Copyright 2019-2024, Adrien Barbaresi'
__version__ = '1.12.2'
__copyright__ = "Copyright 2019-present, Adrien Barbaresi"
__version__ = "1.12.2"


import logging
Expand All @@ -21,3 +19,14 @@
from .utils import load_html

logging.getLogger(__name__).addHandler(logging.NullHandler())

__all__ = [
"bare_extraction",
"baseline",
"extract",
"extract_metadata",
"fetch_response",
"fetch_url",
"html2txt",
"load_html",
]

0 comments on commit d380400

Please sign in to comment.