Skip to content

Commit

Permalink
Fixing error in get_new_url
Browse files Browse the repository at this point in the history
  • Loading branch information
jpontoire committed Jan 9, 2025
1 parent 2e2abfc commit 39700b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minet/reddit/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_old_url(url):
def get_new_url(url):
domain = get_domain_name(url)
path = urlpathsplit(url)
new_url = f"https://old.{domain}"
new_url = f"https://www.{domain}"
for ele in path:
new_url = urljoin(new_url, f"{ele}/")
return new_url
Expand Down

0 comments on commit 39700b0

Please sign in to comment.