mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-01-31 10:09:03 +08:00
Create get_images.py
This commit is contained in:
parent
bc4cb38b66
commit
ca180c44e7
1 changed files with 11 additions and 0 deletions
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