The from LXML import etree
The from urllib import request
Url="http://www.proxy.com.ru/list_1.html"
The req=request. Urlopen (url). The read (). The decode (" gb2312 ")
The tree=etree. HTML (the req)
For I in a tree. The xpath ("//tbody/tr [position () & gt; 1]/td [3] ") :
Print (i.t ext)
CodePudding user response:
+ + + + + + the same problemCodePudding user response:
Tbody deleted