Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandhunt committed Jan 26, 2020
1 parent 19f47ae commit 0aa0130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -475,7 +475,7 @@ def doesscrapeurlexist(scrapesitelist, scrapeurl):
prod_price = '0 ' + scrapsite['scrapefield']['currencysymbol'] + ''
prod_sold_out = True
elif scrapsite['scrapefield']['productnocommaasdelimiter'] == '1':
prod_price = prod_price.replace('\,', '', prod_price)
prod_price = prod_price.replace('\,', '')
#print('FINALPRICE:' + prod_price)
except:
print(traceback.format_exc())
Expand All @@ -498,7 +498,7 @@ def doesscrapeurlexist(scrapesitelist, scrapeurl):
prod_salesprice = '0 ' + scrapsite['scrapefield']['currencysymbol'] + ''
prod_sold_out = True
elif scrapsite['scrapefield']['productnocommaasdelimiter'] == '1':
prod_salesprice = prod_salesprice.replace('\,', '', prod_salesprice)
prod_salesprice = prod_salesprice.replace('\,', '')
except:
print(traceback.format_exc())
# >>> CHECK IF BRAND IS FOUND IN NAME <<< #
Expand Down

0 comments on commit 0aa0130

Please sign in to comment.