Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlotteMaher committed Aug 8, 2019
1 parent 25100e2 commit 05297b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -18,7 +18,7 @@ def scrape_table(elephant):
record['Horse'] = table_cells[0].text_content()
#create variable table_cellsurls and put in it any links within the first table_cells item
table_cellsurls = table_cells[0].cssselect("a")
#grab the href=†attribute and put that in HorseURL
#grab the href attribute and put that in HorseURL
record['HorseURL'] = table_cellsurls[0].attrib.get('href')
testingreplace = 'http://www.horsedeathwatch.com/'+table_cellsurls[0].attrib.get('href')
print testingreplace.replace(" ", "%20")
Expand Down

0 comments on commit 05297b1

Please sign in to comment.