Stories from the Web Crawling trenches in localhost

Accessing Your Local Web Server from Python Requests

Author: Mohan Ganesan

Date: Feb 3, 2024

Accessing a development server on localhost is easy with Python requests: Use http://localhost or http://127.0.0.1, Add the port your server uses like :8000, Disable SSL warnings for HTTPS, Import requests and call get/post as usual!

How do I Make cURL Ignore the Proxy?

Author: Mohan Ganesan

Date: Jan 9, 2024

Unset HTTP_PROXY and HTTPS_PROXY environment variables. Set NO_PROXY to exclude specific hosts/domains from the proxy. Use --noproxy or related curl options to disable the proxy per request.

Tired of getting blocked while scraping the web?

ProxiesAPI handles headless browsers and rotates proxies for you.
Get access to 1,000 free API credits, no credit card required!