Skip to main content

Like `requests`, but shittier.

Project description

WebRequest

Like the requests library, but shittier.

Provides convenience functions for writing web-scrapers and other web-interactive things. Built-in support for working through CloudFlare's garbage JS browser checks without any intervention, as well as some other garbage web-application firewall shits that seem intent on breaking the internet.

Built-in user-agent randomization. Support for fetching rendered content via headless chrome. Built on top of my ChromeController project, so it can avoid some of the spectacularly stupid design decisions in selenium.

Default support for compressed transfers.

Basically, the overall goal is to have a simple library that acts as much as possible like a "real" browser. Ideally, it should be indistinguishable from an actual browser from the perspective of the remote HTTP(s) server.

Q: Why
A: Because I started writing horrible web-scraper things in 2008, when the requests library wasn't really a thing.

Q: Why still, then?
A: Anger and spite, mostly.

Q: No, really, why
A: Ok, Because I want to download the internet, and idiots post stuff, and then try to "protect" it from scraping with stupid jerberscript bullshit.

Note: If your non-interactive webite requires me to execute javascript to view it, FUCK YOU, you are a horrible person who is actively ruining the internet.

License: WTFPL

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

WebRequest-0.0.29.tar.gz (36.4 kB view hashes)

Uploaded Source

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