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.18.tar.gz (45.3 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.18-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: webtoolkit-0.0.18.tar.gz
  • Upload date:
  • Size: 45.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.2 Linux/6.12.20+rpt-rpi-v8

File hashes

Hashes for webtoolkit-0.0.18.tar.gz
Algorithm Hash digest
SHA256 b719ff77dcca8b6d88870c77b91102034f13cb39c8cace52a03eee7ddf600b94
MD5 4194eaf05dc88bc3bc83f6adaa831057
BLAKE2b-256 e56a04a66eba289fb9ecd081680255936431f732c1419101a19a61c150a42863

See more details on using hashes here.

File details

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

File metadata

  • Download URL: webtoolkit-0.0.18-py3-none-any.whl
  • Upload date:
  • Size: 53.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.2 Linux/6.12.20+rpt-rpi-v8

File hashes

Hashes for webtoolkit-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 d541c1d7e2fef058fe54a01e33c50e0c0abfa9c844424ed23482aafdb4a26715
MD5 750d7424137eb5a829674d3d6c3af48f
BLAKE2b-256 374c30620b82b0b1482c773a7ebf203fb626f08500159074909795b7f5b88dc8

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