Skip to content

Commit

Permalink
Update DouBanSpider.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lanbing510 committed May 17, 2015
1 parent 3f8df12 commit b028b55
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 @@ -15,7 +15,7 @@ def book_spider(book_tag):
book_list=[]
try_times=0

while(page_num<3):
while(1):
url="http://www.douban.com/tag/"+urllib.quote(book_tag)+"/book?start="+str(page_num*15)
source_code = requests.get(url)
time.sleep(0.3)
Expand Down

0 comments on commit b028b55

Please sign in to comment.