Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
meandu229 committed May 17, 2016
1 parent 9d81c11 commit 80f79fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scraper.py
Expand Up @@ -12,6 +12,8 @@
frame = root.cssselect("div.entry-content")[0]
url = frame.cssselect('img')[0].get('src')
print url
ret = scraperwiki.sql.select("* from data where 'url'='"+url+'")
print str(ret.len)
#
# # Write out to the sqlite database using scraperwiki library
scraperwiki.sqlite.save(unique_keys=['url'], data={"url": url})
Expand Down

0 comments on commit 80f79fe

Please sign in to comment.