Skip to main content

Extract text and some metainfo from HTML, coping with malformed pages as well as possible.

Project description

This package was written for a search engine, to allow it to extract the textual content and metadata from HTML pages. It tries to cope with invalid markup and incorrectly specified character sets, and strips out HTML tags (splitting words at tags appropriately). It also discards the contents of script tags and style tags.

As well as text from the body of the page, it extracts the page title, and the content of meta description and keyword tags. It also parses meta robots tags to determine whether the page should be indexed.

The HTML parser used by this module was extracted from the Xapian search engine library (and specifically, from the omindex indexing utility in that library).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

htmltotext-0.7.2.tar.gz (27.5 kB view details)

Uploaded Source

File details

Details for the file htmltotext-0.7.2.tar.gz.

File metadata

  • Download URL: htmltotext-0.7.2.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for htmltotext-0.7.2.tar.gz
Algorithm Hash digest
SHA256 e8be5e67764462e7f61e752bdafefd38706237a26a4a1f322869f5c4b0275f41
MD5 59b96ac472fd4e4243fe2ed8fed125bf
BLAKE2b-256 bfcfa46f5d6b40511c012e4a21e47b7873b4495f6e15cc8740ed9806b1cc7a8f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page