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:
parent
1e7e6f082d
commit
ab4a0154c6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue