Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
urlopen error
#1
Hi, Python Web Scrapers,

I wrote a simple code to use urlopen function, but it didn't work.
I don't know what's wrong with my code.

Python 3.8.2
OS: Windows
IDE: VS Code

Here's my code

importĀ urllib.request
url='http://python.org/'
get=urllib.request.urlopen(url)
print(get)
you can see the error picture in :
https://imgur.com/ifOMZHO
[Image: ifOMZHO]
Reply


Messages In This Thread
urlopen error - by newmoon - Apr-17-2020, 09:34 PM
RE: urlopen error - by thirteendec - Apr-17-2020, 11:19 PM
RE: urlopen error - by Larz60+ - Apr-18-2020, 12:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  urllib.request.urlopen and proxy perseus142 0 1,936 May-29-2020, 08:46 AM
Last Post: perseus142

Forum Jump:

User Panel Messages

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