Skip to main content

Web tools and interfaces for Internet data processing.

Project description

webtoolkit

Provides classes and tools for Internet data processing.

  • Url parsing
  • HTTP status codes identification
  • Page definitions: HtmlPage, RssPage, OpmlPage, Content interfaces
  • Means of calling crawling systems, Crawling interfaces

Remote crawling interfaces are implmented by crawler-buddy.

Available on pypi.

Url parsing

Clean link from trackers, sanitize

UrlLocation.get_cleaned_link()

To obtain domain

UrlLocation(link).get_domain()

HTTP processing

Identification of valid codes

PageResponseObject().is_valid()

Identification of invalid codes

PageResponseObject().is_invalid()

Some codes might not indicate that this page is valid, and is not invalid. For example if our crawler is throttled because of too many requests we do not know yet if the page is valid, or not.

Page definitions

Easy access to HTML properties

page = HtmlPage(url, contents)
page.get_title()
page.get_description()

Easy access to RSS properties

page = RssPage(url, contents)
page.get_title()
page.get_description()
page.get_entries()

Easy access to Opml properties

page = OpmlPage(url, contents)
page.get_entries()

Interfaces

  • RemoteServer - provides means of calling remote crawling systems
  • RemoteUrl - wrapper for RemoteServer, to obtain ready to use data
  • CrawlerInterface - Interface for crawlers
  • HandlerInterface - Allows implementing your own handler

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

webtoolkit-0.0.26.tar.gz (47.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webtoolkit-0.0.26-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

Details for the file webtoolkit-0.0.26.tar.gz.

File metadata

  • Download URL: webtoolkit-0.0.26.tar.gz
  • Upload date:
  • Size: 47.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-85-generic

File hashes

Hashes for webtoolkit-0.0.26.tar.gz
Algorithm Hash digest
SHA256 c8289cd5b9daa45dc72a866d9bd051780c8e0b588e4ce8009b4d9182bcc83c53
MD5 38577f1de6a9c04a717b8d04a805a0c9
BLAKE2b-256 8d9b2c70f1918e49ab66a048cdc7a2b0c1454430f3ada5e910259398caa28809

See more details on using hashes here.

File details

Details for the file webtoolkit-0.0.26-py3-none-any.whl.

File metadata

  • Download URL: webtoolkit-0.0.26-py3-none-any.whl
  • Upload date:
  • Size: 53.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-85-generic

File hashes

Hashes for webtoolkit-0.0.26-py3-none-any.whl
Algorithm Hash digest
SHA256 91e10b79c9f43a7589eab5037798aa57d2df2a49d8c1cc2c0a74239669722d79
MD5 60957967a98c5e79d38ccb73a8509463
BLAKE2b-256 05a7abff2d97659514d87ce1129c88dbd1a1a1c6e2e945a0a26d5093858b1bdc

See more details on using hashes here.

Supported by

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