Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
A little reptile
no vote
import requestsfrom lxml import html#url=' http://www.sina.com.cn 'url=' http://www.santaihu.com/ '#url=' https://movie.douban.com/ '# web address where data needs to be crawled= requests.Session ().get(url) tree= html.fromstring ( page.text ) #result= tree.xpath ('//td[@class="title" ]//A / text () 'ා get the required data result= tree.xpath ('//article[@class="excerpt"]//a/text()')print(result)
tomcat1945
2018-06-07
0
1
No more~