Jul-09-2019, 10:34 AM
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 something different from the text. Although if I just print link.text I get the same text as you
Thank you very much in advance for your help!
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 something different from the text. Although if I just print link.text I get the same text as you
link = soup.find_all('span')[i] article_body.append(link.text)2)How can I get two loops (or use two criteria) for soup.findAll? I need to be able to select the 'span' inside the 'a' class?
Thank you very much in advance for your help!