Python Forum

Full Version: How to read what's written in THIS specific page ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone.
I've been struggling with this problem for a while. The solution I found was copying and pasting into python manually the contents of the following
The information in the page is pretty simple.
But as you can see, the from the source code, the page is in JavaScript or CSS or something. So I wasn't able to read it with
Python Code: (Double-click to select all)
1
2
3
4
5
from urllib.request import
link = "https://blablalbla"
f = urlopen(link)
myfile = f.read()
print(myfile)
I get the error:
File "C:\Program Files (x86)\Python37-32\lib\urllib\request.py", line 1319, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 11004] getaddrinfo failed>


So, to be clear:

What you experienced programmers would recommend to read the numbers in that page into a string that I could handle later?

Thank you very much!