Last active
August 25, 2019 07:00
-
-
Save jakes2255/1272ac20d9d6298f2fc2a70f9ec2493e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# loop for retrieving div tags | |
for eachDiv in divs: | |
hrefS = re.findall(r'title=(.*?)>', str(eachDiv)) | |
for hRef in hrefS: # loop for retrieving only titles in the relevent divs | |
print(hRef) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment