Skip to content

Commit

Permalink
1.2.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
oddjones committed Oct 29, 2014
1 parent c0818e5 commit 2f9abd6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scraper.py
Expand Up @@ -21,12 +21,11 @@ def __init__(self, name, qty, url, ID, price):
x=0
for el in root.cssselect("div#property_table_109 table tr"):
print lxml.html.tostring(el)
#kingspan.append Product("Kingspan50",1,"buildingmaterials.co.uk",el.cssselect("td")[2].text,el.cssselect("td")[3].text)
print x
print el.cssselect("td")[0].text
if x> 0:
kingspan.append Product(el.cssselect("td")[0],1,"buildingmaterials.co.uk",el.cssselect("td")[2].text,el.cssselect("td")[3].text)
x=x+1


print kingspan
#
# # Write out to the sqlite database using scraperwiki library
# scraperwiki.sqlite.save(unique_keys=['name'], data={"name": "susan", "occupation": "software developer"})
Expand Down

0 comments on commit 2f9abd6

Please sign in to comment.