- 博客(2)
- 收藏
- 关注
原创 python 通过srcset属性获取最高像素图片
python 通过srcset属性获取最高像素图片例如:html = response.text #获取响应文本ehtml = etree.HTML(html) #将字符串转变成_Element对象cover_url_list = ehtml.xpath("//a[@class='animsition-link']/div[@class='post-thumb']/img/@srcset") #定位并获取srcset内容格式cover_url_list_max = []#最高像素封面图列表
2021-07-23 15:02:21
251
1
原创 构造URL列表
python 构造URL列表urls =[‘https://styledumonde.com/page/{}/’.format(number) for number in range(1,page_numbers+1)]
2021-07-19 12:52:11
510
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人