Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
psychemedia committed Mar 1, 2015
1 parent 4a44cf0 commit b1aa5e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def oddsGrabber(soup,default):


def urlbuilder_generic(path,stub,bet):
return 'http://www.oddschecker.com/{0}/{1}/{2}'.format(path.strip('/'),stub.strip('/'),bet)
return {0}/{1}/{2}'.format(path.strip('/'),stub.strip('/'),bet)

def oddsGrabber_generic(url,default):
soup=makeSoup(url)
Expand Down Expand Up @@ -95,7 +95,6 @@ def scraper(path,stub,bets,bookies):
for bet in bets:
tableCheck(bet)
url=urlbuilder_generic(path, stub, bet)
print(url)
odds=oddsGrabber_generic(url,{})
oddsdata=oddsParser_generic(odds,bookies)
scraperwiki.sqlite.save(unique_keys=[],table_name=bet, data=oddsdata)
Expand Down

0 comments on commit b1aa5e0

Please sign in to comment.