Datacenter Proxies
Scrapingdog also provides a proxy method to use the web scraping API. It is just an alternative to the scraping API. The functionalities remain the same.
Any request to this proxy will be forwarded to the web scraping API.
Proxy Example
curl -x "http://scrapingdog:[email protected]:8081" -k "https://httpbin.org/ip"import requests
# Define the proxy URL with credentials
proxy_url = "http://scrapingdog:[email protected]:8081"
# Target URL
target_url = "https://httpbin.org/ip"
# Set up the proxy for the request
proxies = {
"http": proxy_url,
"https": proxy_url,
}
# Make the GET request
response = requests.get(target_url, proxies=proxies, verify=False)
# Print the response content
print(response.text)
Last updated