This is the link. I am trying to scrape the entire description texts. It is all under a div class called "station-tabs-content-inner". But some texts are under the lists tag and some are under the p tag with no specific class name. Can someone help me to get all the texts inside this div, regardless of their tags?
2
Answers
Use
class="description"
for selecting the tag and then.get_text()
:Prints:
This is indeed interesting HTML source.
If you inspect the source, you’ll see that the data is alos availbae in JSON format:
So, grab the data from there:
Prints: