Giter Site home page Giter Site logo

leovan / scihubeva Goto Github PK

View Code? Open in Web Editor NEW
962.0 28.0 152.0 13.8 MB

A Cross Platform Sci-Hub GUI Application

License: MIT License

QMake 0.18% Python 52.82% QML 40.20% Inno Setup 1.76% Shell 3.41% PowerShell 1.63%
qt qtquick qml pyside6 scihub python

scihubeva's Introduction

Sci-Hub EVA logo

Release License Issues Downloads


Introduction

Sci-Hub EVA is a cross-platform Sci-Hub GUI application powered by Python and Qt.

Usage

Click Open button to choose where to save the downloaded files. Click Show button will open the directory where you set.

Fill the Query and click Rampage button, then it will search and download the file. Currently, you can fill the query with URL, PMID, DOI or title.

Range pattern in query is supported, e.g. 00.000/{1-99} will download 00.000/1, 00.000/2, ... 00.000/99. Zero padded format range pattern is allowed, e.g. 00.000/{01-99} will download 00.000/01, 00.000/02, ... 00.000/99.

Also you can download with a query list file, in which each line represents a query. Click Load button to load the query list file.

Right clicking the log area will popup menu, you can open the log file or log directory.

Click will show the About dialog.

Click will open the Preferences dialog.

You can change language manually. Light and dark theme are supported, also you can choose System to fit system theme automatically. Changes will take effect after restart.

You can change filename prefix format with supported keywords. Setting overwrite existing file to No will add a timestamp suffix in filename to avoid overwriting previous downloaded files.

Due to the unstable Sci-Hub host accessibility, it may fail to download PDFs sometimes, you can change and add other Sci-Hub URLs, or set a proxy server.

Sometimes, you may need enter the captcha to continue.

Internationalization Support

  • English
  • Simplified Chinese (简体中文)
  • Traditional Chinese - Hongkong (繁體中文 - 香港)
  • Traditional Chinese - Taiwan (正體中文 - 臺灣)
  • Portuguese - Portugal

Platform Support

macOS

Light Theme Dark Theme

Windows

Light Theme Dark Theme

Linux

Light Theme Dark Theme

Installing

macOS

  • Install with dmg file.
  • Install with brew: brew install --cask scihubeva.

Windows

  • Install with setup file.
  • Install with scoop: scoop bucket add scoopet https://github.com/ivaquero/scoopet && scoop install scihubeva.

Linux

Note

Tested only on Ubuntu 20.04 and Ubuntu 22.04.

Building

See building/README.md

Licenses

The MIT License (MIT)

Copyright © 2018-2024, 范叶亮 | Leo Van

scihubeva's People

Contributors

dependabot[bot] avatar jaimejim avatar leovan avatar nurul-gc avatar womeimingzi11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scihubeva's Issues

Add Continuous Integration with Travis CI

Since this project is written with PyQt5, it's built with PyInstaller and there is no problem to do it with Travis CI. The main problem is packing on Windows with NSIS, I am not quite familiar with Travis CI, like how to installer extra apps (like NSIS) manually. Hope someone can provide a .travis.yml to build and pack this project on different platforms (macOS, windows x64 and x86, linux). Details of building and packing for different platforms, please refer BUILDING.md.

Build size on macOS

Hi Leo, when I upgraded SciHubEVA to 4.1.1 through brew on macOS I noticed the build size is ~193MB. Is there a particular reason that it's taking a lot of space on disk?

Many thanks ahead for reading this question. This project is awesome!

ERROR - HTTPSConnectionPool(host='sci-hub.ru', port=443)

您好作者,我在使用过程中突然遇到这个问题,是代理服务器出了问题吗?我没学过代码不太懂,应该怎么解决呢?谢谢!

2024-01-25 14:23:22,200 - INFO - ––––––––––––––––––––––––––––––
2024-01-25 14:23:22,200 - INFO - 正在处理搜索: 10.1016/j.scitotenv.2023.168701
2024-01-25 14:23:22,200 - INFO - 使用 Sci-Hub URL: https://sci-hub.ru
2024-01-25 14:23:22,200 - INFO - 搜索类型: DOI
2024-01-25 14:23:22,200 - INFO - 获取 PDF URL 中 ...
2024-01-25 14:23:30,350 - ERROR - 获取 PDF URL 失败!
2024-01-25 14:23:30,351 - INFO - 你可能需要手动处理本次查询。
2024-01-25 14:23:30,351 - ERROR - HTTPSConnectionPool(host='sci-hub.ru', port=443): Max retries exceeded with url: / (Caused by ProxyError('Unable to connect to proxy', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001FF6BC91690>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))

Missing dependencies for SOCKS support.

WIN8.1系统 采用socks代理,点击rampage之后,报错Missing dependencies for SOCKS support.
请问该如何处理
BTW. 我的分辨率是1920x1080,我打开设置的话,最下面的确认和取消按钮看不见,我只能通过conf文件修改,请问这个是否有可以修正的方法(虽然我通过conf还是可以改的)

OpenGL issue

When i launch the windows app scihub eva, i get the error that open GL 2.0 or higher driver is required or the ANGLE libraries are missing.

I put missing ANGEL libraries, libegl.dll, libglesv2.dll and d3dcompiler_43.dll in exe folder. exe did not work. Same error.

I tried to updated the intel HD 3000 driver. Its already latest 9.17.10.4459.

Also, i checked my intel HD 3000 is supporting openGL 3.1

I also checked on another laptop, still same issue as that laptop also had the same graphics card intel hd 3000.

For 1st time, when i installed exe in my second laptop, exe ran and hanged up in fetching captcha. Then, closed it and re-ran it OPEN GL error.

I re-installed on both laptops, same error.

switched down to v3.20 still same issue.

Kindly help.

Capture
Capture1

求助!win10 打包失败

你好!

我在win10上可以运行,但是用pyinstaller打包运行失败,pyinstaller是最新的3.4,我想问题可能就是这个(https://github.com/pyinstaller/pyinstaller/pull/3875)。

请问你是在Windows上打包成功的吗,还是Mac呢?我试了下就算是最简单的只是调用qml文件,也打包不成功,有什么办法吗?

ERROR - 错误 403

您好,尊敬的作者大大。

我使用EVA下载出现了如下提示:
2023-01-14 14:45:30,083 - INFO - 正在处理搜索: 10.1038/s41577-021-00550-x
2023-01-14 14:45:30,084 - INFO - 使用 Sci-Hub URL: https://sci-hub.se/
2023-01-14 14:45:30,084 - INFO - 搜索类型: DOI
2023-01-14 14:45:30,084 - INFO - 获取 PDF URL 中 ...
2023-01-14 14:45:30,989 - ERROR - 错误 403
2023-01-14 14:45:30,991 - INFO - 你可能需要手动处理本次查询。

但直接用https://sci-hub.se/10.1038/s41577-021-00550-x是能打开网页版的,请问该如何解决呀?谢谢!

Can't find scihub_resources file

the scihub_eva.py has a decalre “import scihub_resources” in line25.
but I can't find scihub_resources file in the entire source code.
Is anything misunderstanding in me ?

always chinese

The interface is always in Chinese, even after reinstall(empty the temp file is useless too, e.g. uninstall and delete temp file in C:\Users\PC\AppData\Local).
Maybe SciHubEVA automatically apply system language, it's cool but I think the word "rampage" should be rename as "download", or just change "暴走" to "下载" because it is stupid to use the word "暴走" here.
Below is my system information:
2020-08-07_152508

the latest version is damaged

Hi,

I downloaded several times of latest version, while it always displayed damaged. I wonder whether it's just damaged in GitHub. Could you please check the latest version? Thank you so much.

Best wishes!

無法下載文獻

不排除是我自己網速的問題。我下載了之前的版本同樣出現這個問題。速度非常慢。停留在fetching的命令行。
但是我更換了電腦之後發現速度依舊很慢。

Question about mac

Hello
I download the dgm on my mac but it failed to be settled down. My computer alarmed me a popup as this dgm was broken. So I am wondering would u mind tell me what I should do?

Thank u.

Feature: Bulk Downloading\ queue Downloading

Downloading files in bulk or in queue you would be pretty useful. Especially when journal volumes have links that end in sequential numbers. This can be done by either an external file the would contain a list of URLs (like wget), or by an in program gui queue.

Feature addition

  1. good to have proxychains mechanism for auto switching to different proxies.

  2. can captcha be bypassed? https://github.com/bibcure/scihub2pdf did it. worked for me for sometime.

  3. add support for arxiv.

  4. good to have doi numbers printed of docs, which failed to download. e.g like in log file.

V5.1.1使用txt中doi,获取PDF URL失败

2021-11-06 23:03:20,691 - INFO - 正在处理搜索: 10.1177/1468796820913135
2021-11-06 23:03:20,691 - INFO - 使用 Sci-Hub URL: https://sci-hub.ren
2021-11-06 23:03:20,691 - INFO - 搜索类型: DOI
2021-11-06 23:03:20,692 - INFO - 获取 PDF URL 中 ...
2021-11-06 23:03:25,166 - ERROR - 获取 PDF URL 失败!
2021-11-06 23:03:25,167 - ERROR - HTTPSConnectionPool(host='sci-hub.ren', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', timeout('_ssl.c:1112: The handshake operation timed out')))

ERROR - 获取 PDF URL 失败!

错误日志一:正在处理搜索: poor economics
2021-06-16 07:14:00,098 - INFO - 使用 Sci-Hub URL: https://sci-hub.se
2021-06-16 07:14:00,099 - INFO - 搜索类型: STRING
2021-06-16 07:14:00,099 - INFO - 获取 PDF URL 中 ...
2021-06-16 07:14:00,193 - ERROR - 获取 PDF URL 失败!
2021-06-16 07:14:00,194 - ERROR - HTTPSConnectionPool(host='sci-hub.se', port=443): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x0000022D56B21940>, 'Connection to sci-hub.se timed out. (connect timeout=0.003)'))
错误日志二:正在处理搜索: poor economics
2021-06-16 07:15:16,230 - INFO - 使用 Sci-Hub URL: https://sci-hub.st
2021-06-16 07:15:16,230 - INFO - 搜索类型: STRING
2021-06-16 07:15:16,231 - INFO - 获取 PDF URL 中 ...
2021-06-16 07:15:17,402 - ERROR - 获取 PDF URL 失败!
2021-06-16 07:15:17,403 - ERROR - 无有效的 <iframe> !
2021-06-16 07:15:17,404 - INFO - 你可能需要手动处理。
2021-06-16 07:15:17,404 - INFO - 请求 URL: https://sci-hub.st/poor economics
2021-06-16 07:15:17,405 - INFO - 响应 URL: https://sci-hub.st/

我是初次使用,不知道是因为需要代理还是软件出现BUG

URL出现问题

由于自带的Url①https://sci-hub.se 卡在下载pdf一步,于是自己添加了②https://www.sci-hub.ren/ 链接,然后将①删除,之后URL栏出现了链接③,继续删除掉③之后URL变成空白,但是可用②链接获取地址(但是还是卡在下载PDF一步)。
在多次尝试加速器之后,eva彻底丢失链接,无法获取链接,提示如下:
2021-06-04 20:30:59,769 - INFO - 获取 PDF URL 中 ...
2021-06-04 20:30:59,770 - ERROR - 获取 PDF URL 失败!
2021-06-04 20:30:59,771 - ERROR - Invalid URL '': No schema supplied. Perhaps you meant http://?

目前URL栏添加地址无效,删除时也提示无法删除空白,重装也无法恢复默认,导致目前软件获取不到任何链接。

Have error running scihub_eva.py

Dear Leovan,
Here is a question when I running scihub_eva.py.

  1. I generate scihub_resources.py with "pyrcc5 SciHubEVA.qrc -o scihub_resources.py".
    image

  2. Error appears in
    image

As you can see, I have imported scihub_resources below.
image

It still says that cannot find SciHubEVA.qml.

image

So could you please tell me where is my problem?
Wish you could reply.

ERROR - 获取 PDF URL 失败!

您好,我的出现如下问题。请问怎么解决呢?谢谢


2021-09-10 10:30:46,273 - INFO - 正在处理搜索: 10.1145/3404835.3462936
2021-09-10 10:30:46,281 - INFO - 使用 Sci-Hub URL: https://sci-hub.st
2021-09-10 10:30:46,281 - INFO - 搜索类型: DOI
2021-09-10 10:30:46,282 - INFO - 获取 PDF URL 中 ...
2021-09-10 10:30:47,031 - ERROR - 获取 PDF URL 失败!
2021-09-10 10:30:47,031 - ERROR - 无有效的 <iframe> !
2021-09-10 10:30:47,031 - INFO - 你可能需要手动处理。
2021-09-10 10:30:47,032 - INFO - 请求 URL: https://sci-hub.st/10.1145/3404835.3462936
2021-09-10 10:30:47,032 - INFO - 响应 URL: https://sci-hub.st/

ERROR - HTTPSConnectionPool(host='sci-hub.hkvisa.net', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))

Hi leovan,
I came across a ERROR in using this tool and I am not sure where I went wrong.
The connection to Sci-hub is OK, and the my input my files look like this:

** A text file**
10.1016/j.ecolecon.2015.04.003
10.1016/j.jenvman.2009.09.010
...

This is the returning log
2022-02-11 23:42:18,521 - ERROR - HTTPSConnectionPool(host='sci-hub.hkvisa.net', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))

captcha window cannot pop-up

OS: Windows 10, 64 bit OS
Installation: SciHubEVA-x64-v3.1.2.exe

captcha window doesn't pop-up, thus I cannot type the captcha. Could you help me solve it, thanks?

Please provide an AppImage for Linux

Providing an AppImage would have, among others, these advantages:

  • Applications packaged as an AppImage can run on many distributions (including Ubuntu, Fedora, openSUSE, CentOS, elementaryOS, Linux Mint, and others)
  • One app = one file = super simple for users: just download one AppImage file, make it executable, and run
  • No unpacking or installation necessary
  • No root needed
  • No system libraries changed
  • Works out of the box, no installation of runtimes needed
  • Optional desktop integration with appimaged
  • Optional binary delta updates, e.g., for continuous builds (only download the binary diff) using AppImageUpdate
  • Can optionally GPG2-sign your AppImages (inside the file)
  • Works on Live ISOs
  • Can use the same AppImages when dual-booting multiple distributions
  • Can be listed in the AppImageHub central directory of available AppImages
  • Can double as a self-extracting compressed archive with the --appimage-extract parameter

Here is an overview of projects that are already distributing upstream-provided, official AppImages.

If you have questions, AppImage developers are on #AppImage on irc.freenode.net.

Possibly https://github.com/probonopd/linuxdeployqt/#using-linuxdeployqt-with-travis-ci could be used almost 1:1.

Bug report

Hello, I would like to ask, when the latest version 6.0 of sci-hubEVA was downloaded, I was prompted: ERROR - search list file is not a text file! But I exported notepad files directly from endnote. Is there any solution for this? Thank you.

Auto build needed: Workflow

please add the workflow for auto building of the scihubeva to get them as nightly build from actions on the commit.

求助

你好!
我使用的是Windwos10 ,按照 BUILDING.md 文件中的步骤,我已经安装了 Qt 并且能够执行 lupdate 和 lrelease 命令。在执行 lupdate SciHubEVA.pro 的时候出现了这样一个错误:

WARNING: Project ERROR: Unknown module(s) in QT: quickcontrols2
F:/SciHubEVA-master/scihub_api.py:83: Excess closing bracket in C++ code (or abuse of the C++ preprocessor)
F:/SciHubEVA-master/scihub_api.py:83: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor)
F:/SciHubEVA-master/scihub_api.py:83: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor)
F:/SciHubEVA-master/scihub_api.py:83: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor)
F:/SciHubEVA-master/scihub_api.py:83: Unterminated C++ character
F:/SciHubEVA-master/scihub_api.py:104: Unterminated C++ character
F:/SciHubEVA-master/scihub_api.py:107: Unterminated C++ character
...(省略)

这是缺少 quickcontrols2 模块吗?我Google了好久都没有找到解决方案,另外下面 C++ 是有什么错误啊?

Some documents can't be downloaded

Thank you so much for this code, it's very helpful ...
However, some documents can't be downloaded even if they could be downloaded directly without any problem.

Errors----fail to obtain PDF URL

Hi, leovan
Thank your contribution on this attractive software.
I got a problem when I used the SciHubEVA. The problem is that when I clicked the RAMPAGE button, there was an error—— it said that it fails to obtain PDF URL, and "unvalid !", it also reminds me to handle it manually. Although I have changed several different SciHub URL, the problem still exists. What should I do to solve this error, since I have to download enormous literature.

about captcha

Hi, when I get article by PMID, I got the WARN of inputing captcha. Howerer, there's no captcha appear.

小問題

作者您好,我又來了。發現了以下的三個小問題,望引用:

  1. 第一點是昨天的信號不好發現可能是因為命名太長的緣故,今天將自動命名去掉之後,可以正常工作。
  2. 但是取消命名之後帶來的問題是軟件是自動覆蓋的,因此許多名稱會覆蓋。測試結果是37篇文章中除去一篇下載不了以外只有34篇文檔。也許是同名的文章被覆蓋了。考慮到這個,選擇了增加「author」作為自動命名,會出現許多unknown的文章,同樣出現覆蓋現象,文章數量為35.
  3. Windows 無論是32位系統還是64位系統無法彈出驗證碼。Mac的不存在該問題。

致謝

挂代理的时候无法获取pdf url

挂代理会报错 check_hostname requires server_hostname,关闭代理能够正常获取 pdf url。

然后我按照 Python 遭遇 ProxyError 问题记录解决方法,设置了代理的环境变量后,request和pip都正常了,

但是这个软件仍然会报错,错误变成了ERROR - HTTPSConnectionPool(host='sci-hub.se', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000018B0F384160>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')))

大批量下载占用内存过高

大批量下载pdf的时候,占用内存是不断增加的,尤其是下载1k个文件以后,甚至超过下载文件的总大小,不知道这个机制是什么,有无解决办法?

Failed to create OpenGL context for format QSerfaceFormat

2018-05-28 14-18-17-948

试着解决弹窗警告的问题:

因为昨天偶然删除了些和独显驱动有关的文件,电脑一直有些小毛病出现,今天安装这个软件又弹出上图所示问题,所以我索性把驱动重装了一遍,但问题仍未解决;(PS:OpenGL和显卡驱动的关系我没整明白,网上有说两者无关的,又有说某年后驱动集成了OpenGL……,最后,没在继续深究,就将驱动重装了一遍,问题未解决)

然后,我换了种做法,试着将上图红框中的三个dll文件放在Sci-Hub EVA安装目录中,仍然弹出上图。

请问,我尝试的第二种做法还需要做什么设置吗?如何能解决该问题?

电脑系统:Win7 64x; 显卡:AMD Radeon HD 7370M

PS:电脑独立显卡一直有问题,所以安装的显卡驱动是出厂光盘上带的,年代比较久,但是也只能用那个版本号的驱动才好使,不然独显的软件控制面板都打不开,所以,如果解决方案是升级驱动,我可能不能再尝试了。

另外,添加的dll文件是我从微信软件的安装目录中拷贝来的,如下图所示。

2018-05-28 14-25-27-757

Application is damaged can't open

I have an issue with the last version of Scihub-Eva: when I open the application it fails, and I have a message “Application is damaged and can't be opened. You should put this element in Trash“

I tried installing with the GitHub dmg and with HomeBrew.

When I compile the application by myself, it works

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.