Skip to content

Instantly share code, notes, and snippets.

@montenegrodr
Created February 25, 2018 19:49
Show Gist options
  • Save montenegrodr/d4524f07da139ae285a37b29e22a9253 to your computer and use it in GitHub Desktop.
Save montenegrodr/d4524f07da139ae285a37b29e22a9253 to your computer and use it in GitHub Desktop.
Web Scraping sem ser bloqueado
import requests
from letmecrawl import letmecrawl
for proxy in letmecrawl.letmecrawl():
response = requests.get(
url='http://ifconfig.co/json',
proxies={'http': str(proxy)}
)
print response.content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment