Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jowang0319 committed Jun 25, 2017
1 parent 4c37f65 commit 48c2458
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scraper.py
Expand Up @@ -37,6 +37,9 @@
list.append(data_set)
print(list)

table = scraperwiki.sqlite.save(unique_keys=['货币名称'], data=list)


with open('test.csv', 'w') as csvfile:
fieldnames = ["货币名称", "现汇买入价","现钞买入价","现汇卖出价","现钞卖出价","中行折算价","发布日期","发布时间"]
writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
Expand Down

0 comments on commit 48c2458

Please sign in to comment.