网页版简单爬虫网页版爬虫
网页版爬虫#爬取requests/BeautifulSoupimport requestsimport MySQLdbfrom bs4 import BeautifulSoupurl = 'https://bj.lianjia.com/zufang/'#浏览器获取urldef get_page(url): response = requests.get(url) soup = BeautifulSoup(response.text,'lxml') return soup