dimanche 30 septembre 2018

Webscraping Using Beautifulsoup in Python

I am new to the Beautifulsoup package in Python and am getting some unexpected results when using the .findAll() function. I am needing to extract the string immediately to the right of /File/ from the light blue highlighted portion of this webpage:

enter image description here

Here is my Beautifulsoup/Python code:

enter image description here

The first two lines of code work fine, but pdf1 is empty. Can anyone shed some light on why the .findAll() function is not finding this a tag (I assume I am making a syntax error, just not sure where)?




Aucun commentaire:

Enregistrer un commentaire