Skip to content

Commit

Permalink
change unique key
Browse files Browse the repository at this point in the history
  • Loading branch information
dukkona committed Oct 25, 2016
1 parent fc3fde4 commit 3e89a7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scraper.py
Expand Up @@ -28,7 +28,7 @@
import requests
from BeautifulSoup import BeautifulSoup
import re
import scraperwiki
#import scraperwiki


#brand = "volkswagen"
Expand Down Expand Up @@ -133,6 +133,7 @@
act_kilometer = '0'

data = {
'index': i,
'link': act_link,
'year': act_year,
'price': act_price,
Expand All @@ -142,5 +143,6 @@
'kobcenti': act_kobcenti,
'loero: ': act_loero
}

#print(act_link, act_year, act_price, act_kilometer, act_felszereltseg, act_motor, act_kobcenti, act_loero)
scraperwiki.sqlite.save(unique_keys=['link'], data=data)
scraperwiki.sqlite.save(unique_keys=['index'], data=data)

0 comments on commit 3e89a7f

Please sign in to comment.