Skip to content

Instantly share code, notes, and snippets.

Last active Aug 25, 2019
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment