Python Forum
urlib - to use or not to use ( for web scraping )?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
urlib - to use or not to use ( for web scraping )?
#36
Any idea what substitute to use with requests for read() and decode() attributes that are a part of urlib?
for ex. in this code:
response = requests.get("http://freegeoip.net/json/"+ipAddress).read().decode('utf-8')
I tried to add .utils to this code on several positions but it doesn't work.
Reply


Messages In This Thread
RE: urlib - to use or not to use ( for web scraping )? - by Truman - Dec-10-2018, 11:15 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020