Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pakoo committed Jul 22, 2013
1 parent 69e3e5a commit 38ccd38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def getTmallItemInfo(iid,keyword=''):
'shopid':r'rstShopId:(\w*),',
'brand':r"'brand'\s*:\s*(.*)'\s*,'brandId'",
'brandid':r"'brandId'\s*:\s*'(\w*)'",
'total_count':r'totalSQ=(\w*)',
}
html = get_html("http://detail.tmall.com/item.htm?id=%s"%iid)
#print 'html:',html
Expand Down Expand Up @@ -571,7 +572,7 @@ def cleandata():
#print data
#save_item(data)
#zp(getTaobaoItemInfo(17699431781))
#zp(getTmallItemInfo(16659653478))
zp(getTmallItemInfo(16659653478))
#zp(getTmallItemInfo(12434044828))
#print parse_price(17824234211,6800)
#print itemcrawler(17824234211)
Expand Down

0 comments on commit 38ccd38

Please sign in to comment.