利用python中request库书写一个简单的爬虫
import requests
def get_page(url):
html = requests.get(url).text
if __name__=="__main__":
get_page("http:www.baidu.com")
利用python中request库书写一个简单的爬虫
import requests
def get_page(url):
html = requests.get(url).text
if __name__=="__main__":
get_page("http:www.baidu.com")