Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Getting a specific text inside an html with soup
Post: RE: Getting a specific text inside an html with so...

Thank you snippsat. It was due to another issue somewhere else. Now the only thing I have left to do is to find a way to filter some of the data inside article_body (or tag.text.strip()) as with a spa...
mathieugrimbert Web Scraping & Web Development 9 15,907 Jul-10-2019, 12:40 PM
    Thread: Getting a specific text inside an html with soup
Post: RE: Getting a specific text inside an html with so...

Thank you snippsat. The last issue I have now is that I am not sure how I can store those texts into an array or a dataframe? article_body.append(tag.text.strip())gives me <built-in method strip of...
mathieugrimbert Web Scraping & Web Development 9 15,907 Jul-09-2019, 01:27 PM
    Thread: Getting a specific text inside an html with soup
Post: RE: Getting a specific text inside an html with so...

Thanks snippsat. Although it seems to be selected the 'span' inside the first 'a' only. What I am trying to do is to get a list of all the 'span' inside every 'a' (I normally have only have one 'span'...
mathieugrimbert Web Scraping & Web Development 9 15,907 Jul-09-2019, 11:27 AM
    Thread: Getting a specific text inside an html with soup
Post: RE: Getting a specific text inside an html with so...

Thank you snippsat. That is helpful. I still have two little issues 1) I am doing that inside a loop and trying to capture all the 'span'. When I tried to put that in an array with the below I get so...
mathieugrimbert Web Scraping & Web Development 9 15,907 Jul-09-2019, 10:34 AM
    Thread: Getting a specific text inside an html with soup
Post: RE: Getting a specific text inside an html with so...

To summarise, my issue is that I understand how to look for the class "mark" but I don't know how to look for /mark inside that class. Thank you in advance for any tips
mathieugrimbert Web Scraping & Web Development 9 15,907 Jul-08-2019, 04:30 PM
    Thread: Getting a specific text inside an html with soup
Post: Getting a specific text inside an html with soup

Hi, I apologies for the question but I am new to scrapping in python and I struggle with accessing a text inside an html. I passed the article/html through the soup but I haven't succeed in getting th...
mathieugrimbert Web Scraping & Web Development 9 15,907 Jul-08-2019, 01:19 PM

User Panel Messages

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