Skip to content
Advertisement

How to scrape the text from this data?

JavaScript

I want to get the data regarding the information regarding “images” subsection. This is the code that I have written until now. However, I could not move forward. Could anybody please help?

JavaScript

Advertisement

Answer

You are on the right track, you just need to further dissect the information from that tag, to get what you need. Here is one way of obtaining that data:

JavaScript

Result in terminal:

JavaScript

See pandas documentation at https://pandas.pydata.org/docs/

Also BeautifulSoup docs: https://beautiful-soup-4.readthedocs.io/en/latest/

Advertisement