Python Forum
How to read what's written in THIS specific page ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to read what's written in THIS specific page ?
#1
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!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Solved] Trying to read specific lines from a file Laplace12 7 3,569 Jun-21-2021, 11:15 AM
Last Post: Laplace12
  read logfile between two specific strings FelixReiter 6 2,941 Jan-04-2021, 02:26 PM
Last Post: FelixReiter
  Read Multiples Text Files get specific lines based criteria zinho 5 3,143 May-19-2020, 12:30 PM
Last Post: zinho
  Delete specific lines contain specific words mannyi 2 4,150 Nov-04-2019, 04:50 PM
Last Post: mannyi
  Can't read url when specifying more than a specific number of bytes deivid 3 3,087 Aug-13-2018, 02:24 PM
Last Post: deivid
  How to read and save specific outlook email into csv Prince_Bhatia 0 7,332 May-03-2018, 05:03 AM
Last Post: Prince_Bhatia
  How to read filename and specific cell value from multiple csv Prince_Bhatia 0 2,499 Feb-28-2018, 08:04 AM
Last Post: Prince_Bhatia
  python- read specific words from log file anna 18 13,041 Dec-31-2017, 02:02 PM
Last Post: buran

Forum Jump:

User Panel Messages

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