mirror of
https://github.com/thelittlerocket/pve.git
synced 2024-09-20 06:46:09 +08:00
Create get_images.py
This commit is contained in:
parent
bc4cb38b66
commit
ca180c44e7
11
back/get_images.py
Normal file
11
back/get_images.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
url = 'https://down.idc.wiki/Image/realServer-Template/'
|
||||
|
||||
response = requests.get(url)
|
||||
soup = BeautifulSoup(response.text, 'html.parser')
|
||||
|
||||
for li in soup.find_all('li', {'class': 'item file'}):
|
||||
link = li.find('a')['href'].replace("cdn-backblaze.down.idc.wiki//Image/realServer-Template/", "").replace("//", "")
|
||||
print(link,end=" ")
|
Loading…
Reference in a new issue