摘要: from urllib2 import urlopen from bs4 import BeautifulSoup # Get the next page url from the current page url def get_next_page_url(url): page = urlopen(url) soup_page = BeautifulSoup(page, 'l... 阅读全文
posted @ 2017-07-10 22:22 XinZhou_Annie 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Official webpage: https://www.crummy.com/software/BeautifulSoup/bs4/doc/#searching-the-tree Prettify() The prettify() method will turn a Beautiful Sou 阅读全文
posted @ 2017-07-10 21:19 XinZhou_Annie 阅读(209) 评论(0) 推荐(0) 编辑