Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kooben209 committed Jul 12, 2021
1 parent 85489cb commit d11b6a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -130,7 +130,7 @@ def saveToStore(data):
advertMatch = {}
postKey = random.choice(list(postTemplates))

if advert.find("div", {"class" : "propertyCard-branchLogo"}).find("a" , {"class" : "propertyCard-branchLogo-link"}) is not None:
if advert.find("div", {"class" : "propertyCard-branchLogo"}) is not None:
agent = advert.find("div", {"class" : "propertyCard-branchLogo"}).find("a" , {"class" : "propertyCard-branchLogo-link"}).get("title")
if any(x in agent.lower() for x in excludeAgents):
continue
Expand Down

0 comments on commit d11b6a3

Please sign in to comment.