mirror of
https://github.com/oneclickvirt/pve.git
synced 2024-11-10 17:25:50 +08:00
11 lines
386 B
Python
11 lines
386 B
Python
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=" ")
|