diff --git a/README.rst b/README.rst index c37caf0e..ddaaabfa 100644 --- a/README.rst +++ b/README.rst @@ -59,7 +59,7 @@ Features - Structural elements preserved: paragraphs, titles, lists, quotes, code, line breaks, in-line text formatting - Extraction of metadata (title, author, date, site name, categories and tags) - URL lists: - - Generation of link lists from ATOM/RSS feeds + - Link discovery using sitemaps and ATOM/RSS feeds - Efficient processing of URL queues - Blacklists or already processed URLs - Optional language detection on extracted content @@ -152,7 +152,6 @@ Roadmap - [-] Duplicate detection at sentence, paragraph and document level using a least recently used (LRU) cache - [-] URL lists and document management -- [-] Sitemaps processing - [ ] Interaction with web archives (notably WARC format) - [ ] Configuration and extraction parameters - [ ] Integration of natural language processing tools diff --git a/docs/index.rst b/docs/index.rst index 86538f8b..14711940 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -39,32 +39,32 @@ Welcome to Trafilatura's documentation! Description ----------- -*Trafilatura* is a Python package and command-line tool which seamlessly downloads, parses, and scrapes web page data: it can extract metadata, main body text and comments while preserving part of the text formatting and page structure. The output can then be converted to different formats. +*Trafilatura* is a Python package and command-line tool which seamlessly downloads, parses, and scrapes web page data: it can extract metadata, main body text and comments while preserving parts of the text formatting and page structure. The output can be converted to different formats. -Distinguishing between a whole page and its essential parts can help to alleviate many quality problems related to web texts by dealing with noise caused by recurring elements, such as headers and footers, ads, links/blogroll, and so on. +Distinguishing between a whole page and the page's essential parts can help to alleviate many quality problems related to web text processing, by dealing with the noise caused by recurring elements (headers and footers, ads, links/blogroll, etc.). -The extractor has to be precise enough not to miss texts or discard valid documents; it should robust but also reasonably fast. Trafilatura is designed to run in production on millions of web documents. +The extractor aims to be precise enough in order not to miss texts or to discard valid documents. In addition, it must be robust, but also reasonably fast. With these objectives in mind, Trafilatura is designed to run in production on millions of web documents. Features ~~~~~~~~ -- Seamless online (including page retrieval) or parallelized offline processing with URLs, HTML files or parsed HTML trees as input +- Seamless online (including page retrieval) or parallelized offline processing using URLs, HTML files or parsed HTML trees as input - Several output formats supported: - Plain text (minimal formatting) - CSV (with metadata, `tab-separated values `_) - JSON (with metadata) - XML (for metadata and structure) - `TEI-XML `_ -- Robust extraction algorithm, using `readability `_ and `jusText `_ as fallback, reasonably efficient with `lxml `_: - - Focuses on main text and/or comments +- Robust extraction algorithm, using and `readability `_ and `jusText `_ as fallback; reasonably efficient with `lxml `_: + - Focuses on the document's main text and/or comments - Structural elements preserved: paragraphs, titles, lists, quotes, code, line breaks, in-line text formatting - Extraction of metadata (title, author, date, site name, categories and tags) - URL lists: - - Generation of link lists from ATOM/RSS feeds - - Efficient processing of URL queue + - Link discovery using sitemaps and ATOM/RSS feeds + - Efficient processing of URL queues - Blacklists or already processed URLs -- Optional language detection on the extracted content +- Optional language detection on extracted content Evaluation and alternatives @@ -84,7 +84,7 @@ External evaluations: Installation ------------ -Primarily, with Python package manager: ``pip install --upgrade trafilatura``. +Primary method is with Python package manager: ``pip install --upgrade trafilatura``. For more details please read the `installation documentation `_. @@ -116,7 +116,7 @@ For more information please refer to `quickstart `_, `usage doc License ------- -*trafilatura* is distributed under the `GNU General Public License v3.0 `_. If you wish to redistribute this library but feel bounded by the license conditions please try interacting `at arms length `_, `multi-licensing `_ with `compatible licenses `_, or `contacting me `_. +*trafilatura* is distributed under the `GNU General Public License v3.0 `_. If you wish to redistribute this library but feel bounded by the license conditions please try interacting `at arms length `_, `multi-licensing `_ with `compatible licenses `_, or `contacting me `_. See also `GPL and free software licensing: What's in it for business? `_ @@ -126,7 +126,8 @@ Going further *Trafilatura*: `Italian word `_ for `wire drawing `_. -- In order to gather web documents it can be useful to download the portions of a website programmatically, here is `how to use sitemaps to crawl websites `_ +- In order to gather web documents, it can be useful to download the portions of a website programmatically, here is `how to use sitemaps to crawl websites `_ +- `Content von Webseiten laden mit Trafilatura `_ (Tutorial video in German by Simon Meier-Vieracker) - `Download von Web-Daten `_ & `Daten aufbereiten und verwalten `_ (Tutorials in German by Noah Bubenhofer) @@ -135,7 +136,6 @@ Roadmap - [-] Duplicate detection at sentence, paragraph and document level using a least recently used (LRU) cache - [-] URL lists and document management -- [-] Sitemaps processing - [ ] Interaction with web archives (notably WARC format) - [ ] Configuration and extraction parameters - [ ] Integration of natural language processing tools @@ -152,7 +152,7 @@ Feel free to file issues on the `dedicated page `_ (chiefly linguistic analysis and natural language processing). Extracting and pre-processing web texts presents a substantial challenge for those who must meet scientific expectations. Web corpus construction involves numerous design decisions, and this software package can help facilitate collection and enhance corpus quality and thus aid in these decisions. +This effort is part of methods to derive information from web documents in order to build `text databases for research `_ (chiefly linguistic analysis and natural language processing). Extracting and pre-processing web texts to the exacting standards of scientific research presents a substantial challenge for those who conduct such research. Web corpus construction involves numerous design decisions, and this software package can help facilitate text data collection and enhance corpus quality. .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3460969.svg :target: https://doi.org/10.5281/zenodo.3460969