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
  • Url - wrapper for RemoteServer, to obtain ready to use data

Project details


Release history Release notifications | RSS feed

This version

0.0.6

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.6.tar.gz (40.9 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.6-py3-none-any.whl (44.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: webtoolkit-0.0.6.tar.gz
  • Upload date:
  • Size: 40.9 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.6.tar.gz
Algorithm Hash digest
SHA256 027d0b8aaa846a3bb6baf002904a65c063623166d88f7d1a1abcd9d102b7e960
MD5 136f2b70c4a8f7fecbde04a304c8deab
BLAKE2b-256 9d8360b7cae502fa504f2c1e98358c29328cff1a69d29688f8b587498b3faab7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: webtoolkit-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 44.3 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 db59cd39e72381464f5471db52d50c43c600f1672bc9202441b035490645e968
MD5 8dd6601bdd3c8e77a037d6303693c064
BLAKE2b-256 2b745dbf253dc3168fa0b850b84412cd9ce9c8b884610840d83aa4805e21e651

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