Create get_images.py

This commit is contained in:
spiritLHLS 2023-04-09 01:07:45 +08:00 committed by GitHub
parent bc4cb38b66
commit ca180c44e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

11
back/get_images.py Normal file
View 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=" ")