Python 學習之路(一)

#coding:utf-8 import requests #引入庫 from bs4 import BeautifulSoup url = 'http://news.qq.com' wbdata = requests.get(url).text soup = BeautifulSoup(wbdata,'lxml') #BS4庫解析 news_titles = soup.select('di
相關文章
相關標籤/搜索