mercredi 4 mars 2020

How to get tag information (BeautifulSoup Webscraping)?

I am scraping the information from this page:
https://lawyers.justia.com/lawyer/michael-paul-ehline-85006 . I am trying to scrape all the information in under the fees section. What I want is the following information: Free Consultation Yes Credit Cards Accepted Visa, Mastercard, American Express Contingent Fees In personal injury cases only. Rates, Retainers and Additional Information Rates vary on a case by case basis.

This is what I have tried:

for thing in soup.findAll('ul', attrs={"class": "has-no-list-styles"}):
   ul=thing.find('<li>')
   print(ul)

but the output is:

<li>Intellectual Property</li>
<li>Copyright Law</li>
<li><strong>English</strong></li>

Thank you in advance.




Aucun commentaire:

Enregistrer un commentaire