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.21.tar.gz (46.7 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.21-py3-none-any.whl (53.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: webtoolkit-0.0.21.tar.gz
  • Upload date:
  • Size: 46.7 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.21.tar.gz
Algorithm Hash digest
SHA256 fc861d61307b3c89362ffa083e2b48d91b2a78de593267ac4b678e3e863028eb
MD5 ceeb5ac1b6f6670c81ee9b5c14a4c5e8
BLAKE2b-256 63558b59cf37ee468e79a61daec55e159422a470ec9df630ded1a68c19b273dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: webtoolkit-0.0.21-py3-none-any.whl
  • Upload date:
  • Size: 53.1 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.21-py3-none-any.whl
Algorithm Hash digest
SHA256 dae560e7f5051cd50a0e12faebf8c7f4d735147858ab7c272c29374aba7c8f36
MD5 4ec7341a4c4d063102b5c32fb1217930
BLAKE2b-256 c132dfebf778779337d8cb6f6a1abfa15a87d8d6324d9983c922dda7dbc31b82

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