Delete FontLinkExtractor.py

This commit is contained in:
Sherlock 2023-01-15 03:14:55 +05:30 committed by GitHub
parent 5179296127
commit b6b5731ee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +0,0 @@
import requests
from bs4 import BeautifulSoup
def get_font_links(url):
response = requests.get(url)
soup = BeautifulSoup(response.text, 'html.parser')
fonts_link = []
for tag in soup.find_all(["link"]):
if 'href' in tag.attrs and (tag['href'].endswith('.woff') or tag['href'].endswith('.woff2') or tag['href'].endswith('.ttf') or tag['href'].endswith('.otf')):
fonts_link.append(tag['href'])
return fonts_link
url = "https://yourlinkhere"
font_links = get_font_links(url)
print(font_links)