2017-10-22

# -*- coding utf-8 -*-
import requests
res =requests.get('http://www.qstheory.cn/2017-10/22/c_1121837612.htm')
res.encoding ='utf-8'
# print (res)
# print(res.text)
from bs4 import BeautifulSoup
html=res.text
soup=BeautifulSoup(html,'html.parser')
# print type(soup)
# print soup.text
header=soup.select('#title')
print header





posted @ 2017-10-22 18:01  lh459384111  阅读(98)  评论(0编辑  收藏  举报