美图下载器python 桌面工具

image.png

python 美图下载代码

1
2
3
4
5
6
7
8
9
10
11
def getImgSrc(iNumber=1):
iNumber=int(iNumber)
url=cryptocode.decrypt('RPmitKoyxkGWT3rNdSIdllrKpBQkM2iXv4Gk*3fceH6rrhEDqRfiurc1k/g==*A/Ria0ZdrIKsY1wDa9zFJQ==*1ehaomVX+IvEYaQ4AtJtSQ==','bilibini')
head={
"User-Agent": UserAgent().random
}
res = requests.get(f"{url}/list-{iNumber}.html",headers=head,verify=False)
soup = BeautifulSoup(res.text, 'html.parser')
imgList=soup.select("article > div > div.zhuanti.whitebg.waterfall > ul > li > i > a > img")
imgSrcList=[img.attrs['src'] for img in imgList]
return '||'.join(imgSrcList)

python 美图下载 打包程序下载

已经打包好的程序,下载就可用:https://wwf.lanzoul.com/iwymj1cc0g7e