qutebrowser: Fix scihub script to use wikipedia

When looking for the most up-to-date link to grab a scihub url
we used to use wikiless but now simply directly scrape from
wikipedia.
Functionality is not changed but should work much faster and
more reliably.
This commit is contained in:
Marty Oehme 2024-04-19 11:30:12 +02:00
parent 1e7e6f082d
commit ab4a0154c6
Signed by: Marty
GPG Key ID: EDBF2ED917B2EF6A
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class SciHubLinkParser(html.parser.HTMLParser):
self.current = match["url"] if match and match["url"] else None
def get_scihub_url(wiki_page: str = "https://wikiless.org/wiki/Sci-Hub"):
def get_scihub_url(wiki_page: str = "https://en.wikipedia.org/wiki/Sci-Hub"):
resp = requests.get(wiki_page)
parser = SciHubLinkParser()
parser.feed(resp.text)