Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pakoo committed Jul 18, 2013
1 parent 10a92e6 commit e9fb112
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,22 +511,9 @@ def getTaobaoShop(url):
return sinfo

def runcrawler():
keyword = [
'无线鼠标',
'无线键盘',
'3g网卡',
'路由器',
'iphone5',
'显示器',
'ipad',
'iphone4s',
'macbook air',
'galaxy',
'移动路由',
]
url = "http://s.taobao.com/search?q=%s&commend=all&search_type=item&sourceId=tb.index"
for k in keyword:
searchcrawler(url%k,keyword=k)
for k in db.keyword.find():
searchcrawler(url%k['name'],keyword=k['name'])

def cleandata():
db.item.drop()
Expand Down

0 comments on commit e9fb112

Please sign in to comment.