juchao

//span[@title]/a[@onclick]/@href
from lxml import etree
id=[]
time=[]
z=[]
g=""
selector = etree.HTML(req.text)
links = selector.xpath('//span[@title]/a[@onclick]/@href')
for link in links:
  id+=pattern1.findall(link)
  time+=pattern.findall(link)
for letter, number in zip(id, time):
    g="http://static.cninfo.com.cn/finalpage/"+number+"/"+letter+".PDF"
    z.append(g)
  

 

posted @ 2022-07-19 17:39  速搞  阅读(53)  评论(0)    收藏  举报