Compare commits

..

No commits in common. "url-parsing" and "master" have entirely different histories.

1 changed files with 0 additions and 14 deletions

14
url.py
View File

@ -1,14 +0,0 @@
from urllib.parse import urlparse
def parse_link(url):
u = urlparse(url)
match u.netloc:
case 'www.imdb.com' | 'imdb.com':
parse_imdb(u.path)
case 'myanimelist.net':
parse_mal(u.path)
case _:
url_not_supported(u)
def parse_mal(path):