Hacker News new | past | comments | ask | show | jobs | submit login

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


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.”


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


Ok, I'm not just here to bitch. Here's the code for my implementation of Sci-Hub mirror checking: https://observablehq.com/@iz/sci-hub

I made an iOS Shortcut based on the same code. To use it after installing, access it from the iOS Share screen when you're on a relevant site. It will look for preferred mirrors from Wikidata before running.

https://www.icloud.com/shortcuts/080b9f68c96a4491898b804547e...

Always review a Shortcut's actions before running it.


Thanks for the suggestion! I'll add that in a future version.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: