Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
lanbing510 committed Jan 12, 2016
1 parent 820c96a commit 1509c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doubanSpider.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def book_spider(book_tag):

while(1):
#url='http://www.douban.com/tag/%E5%B0%8F%E8%AF%B4/book?start=0' # For Test
url='http://www.douban.com/tag/"+urllib.quote(book_tag)+"/book?start='+str(page_num*15)
url='http://www.douban.com/tag/'+urllib.quote(book_tag)+'/book?start='+str(page_num*15)
time.sleep(np.random.rand()*2)

#Last Version
Expand Down

0 comments on commit 1509c08

Please sign in to comment.