url = 'https://www.hudl.com/en_gb/'
r = requests.get(url)
soup = BeautifulSoup(r.content, 'html.parser')
image_ = soup.find_all('div', {'class': 'mobile-toggle'})
image_ = image_.find('svg')
image_ = [i.find('svg') for i in image_]
for index, i in enumerate(image_):
with open(f'image_{index}.svg', 'w') as f:
f.write(str(i))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…