Sep-13-2018, 03:09 PM
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 page:
http://greyhoundbet.racingpost.com/#card...3&tab=form
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
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!
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 page:
http://greyhoundbet.racingpost.com/#card...3&tab=form
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
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!