Aug-16-2017, 11:42 PM
snippsat,
your example works for the sample html in your demo code but can you give me an explanation of the syntax following soup.select in these two lines...
print(soup.select('body > p')[0].text)
print(soup.select('#foo')[0].text)
I searched for Beautiful Sup select method but guess I missed explanations for terms like...
('body > p')[0].text)
('#foo')[0].text)
Can you give me some explanation and maybe a linke to the arguments/syntax for the bs select method?
thanks
your example works for the sample html in your demo code but can you give me an explanation of the syntax following soup.select in these two lines...
print(soup.select('body > p')[0].text)
print(soup.select('#foo')[0].text)
I searched for Beautiful Sup select method but guess I missed explanations for terms like...
('body > p')[0].text)
('#foo')[0].text)
Can you give me some explanation and maybe a linke to the arguments/syntax for the bs select method?
thanks