Live data from Hacker News

Sci Hub Injector

github.com

21–30 of 45 posts

Re: Sci Hub Injector

#21

My main problem with sci-hub right now is that it's stopped adding new content to the website since like 1 or 2 years. Which means if you want to have an up-to-date state of the art, you can't use sci-hub. I personally use the bookmarklet, i'm way more inclined towards this than some random browser extension.

The reason why they've stopped temporarily is due to an ongoing court case in India initiated by Elsevier. I'm not sure this is the best article on the case but basically sci-hub agreed not to post any new articles for a period of time (which has been extended) while the case is ongoing:

https://www.hindustantimes.com/india-news/no-new-articles-on...

They did release a bulk issue of 2.7 million articles a few months ago (as part of the torrent collection available from libgen), but nothing new since then.

Re: Sci Hub Injector

#22
post #4

You can also use a one line JS bookmarklet on the article page, such as the following: javascript:(function(){window.location = ' http:// ' + window.location.hostname + '.sci-hub.st' + window.location.pathname;})();

Another one that works: javascript:window.location='http://sci-hub.st/'+window.location (scihub detects most academic websites)

Ooh, that's a lot simpler than my attempt to extract the DOI via regex (which is anyway not 100% possible because of the how flexible the DOI spec is...)

  javascript:location.href = 'https://sci-hub.se/' + document.getElementsByTagName('html')[0].innerHTML.match(/10\.\d{4,9}\/[-._;()\/:A-Z0-9]+/i)[0]

Re: Sci Hub Injector

#23
post #11

Small suggestion: instead of hardcoding the .se domain, you might want to send a request to Wikidata to get the currently ised domains. That's how similar sci-hub tools do it to stay up-to-date.

I had never heard of wikidata, but might steal this idea for a similar app I have on F-Droid that pulls PDFs from Sci-Hub when a doi link is clicked using android's intent system https://f-droid.org/en/packages/com.sigmarelax.doitoscihub/

Re: Sci Hub Injector

#25
I have access to most of the good journals through my institution, but this is more convenient than the typical process, which involves logging in to a proxy and going through one or more gateway sites to find the actual PDF download.

Re: Sci Hub Injector

#27
post #11

Small suggestion: instead of hardcoding the .se domain, you might want to send a request to Wikidata to get the currently ised domains. That's how similar sci-hub tools do it to stay up-to-date.

Is Wikidata the proper way to get the currently functioning mirror? I was under the impression that you had to get it from Elbakyan's VK or the SciHub Telegram. I've been assuming that the subreddit would update with accurate links, so I've just been scraping it from there: https://github.com/smasher164/search/blob/53ae11b52f158d1986...

Re: Sci Hub Injector

#28
post #23
post #11

Small suggestion: instead of hardcoding the .se domain, you might want to send a request to Wikidata to get the currently ised domains. That's how similar sci-hub tools do it to stay up-to-date.

I had never heard of wikidata, but might steal this idea for a similar app I have on F-Droid that pulls PDFs from Sci-Hub when a doi link is clicked using android's intent system https://f-droid.org/en/packages/com.sigmarelax.doitoscihub/

Cool idea. I'm gonna give this a try, thanks for sharing

Re: Sci Hub Injector

#29
post #11

Small suggestion: instead of hardcoding the .se domain, you might want to send a request to Wikidata to get the currently ised domains. That's how similar sci-hub tools do it to stay up-to-date.

Is Wikidata the proper way to get the currently functioning mirror? I was under the impression that you had to get it from Elbakyan's VK or the SciHub Telegram. I've been assuming that the subreddit would update with accurate links, so I've just been scraping it from there: https://github.com/smasher164/search/blob/53ae11b52f158d1986...

I found that source code extremely familiar and was wondering what it was.

I saw the shebang and still didn’t understand what the heck roku was.

Until I searched it:

“Raku is a member of the Perl family of programming languages. Formerly known as Perl 6, it was renamed in October 2019.”

Re: Sci Hub Injector

#30
post #11

Small suggestion: instead of hardcoding the .se domain, you might want to send a request to Wikidata to get the currently ised domains. That's how similar sci-hub tools do it to stay up-to-date.

My god, why did you mention wikidata? SPARQL is the most obscure fucking thing I've ever encountered. I've been sitting here for an hour trying to find how to get the data of a specific page!

I guess the rest API will do, ugh.

Related discussion: https://news.ycombinator.com/item?id=28277749

Post reply on HN