Skip to content

Commit

Permalink
fix branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kooben209 authored and Kooben209 committed Mar 25, 2020
1 parent 39fd4e9 commit 1f61340
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scraper.py
Expand Up @@ -31,8 +31,8 @@ def hasNumbers(inputString):
chrome_options.add_argument("--disable-extensions")

driverException = False
driver = webdriver.Chrome(chrome_options=chrome_options,executable_path='/usr/local/bin/chromedriver')
#driver = webdriver.Chrome(chrome_options=chrome_options)
#driver = webdriver.Chrome(chrome_options=chrome_options,executable_path='/usr/local/bin/chromedriver')
driver = webdriver.Chrome(chrome_options=chrome_options)

def parseAskingPrice(aPrice):
try:
Expand Down Expand Up @@ -155,7 +155,7 @@ def saveToStore(data):

title = advert.find("h2", {"class" : "propertyCard-title"}).text
address = advert.find("address", {"class" : "propertyCard-address"}).text
branchName = advert.find("span", {"class" : "propertyCard-branchSummary"}).text
branchName = advert.find("div", {"class" : "propertyCard-branchSummary"}).text

branchNameLocation = branchName.split(',')[-1].strip().lower()

Expand Down

0 comments on commit 1f61340

Please sign in to comment.