Skip to content

Instantly share code, notes, and snippets.

@jakes2255
Last active Aug 25, 2019
Embed
What would you like to do?
# 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