Closed ping543f closed 3 years ago
Hi there I have solved this issue by changing line 168 of scihub.py from, out_file_path = os.path.join(self.out, pdf['title']+'.pdf') to out_file_path = os.path.join(self.out, pdf['pdf_url'].split("/")[-1])
I know it could be better but as a quick solution I have adapted it, now it is not saving the files with title rather the filename found in the url.
I am trying to download a paper with doi : 10.1021/nn100856y and title is, "Preparation and Characterization of Flexible Asymmetric Supercapacitors Based on Transition-Metal-Oxide Nanowire Single-Walled Carbon Nanotube Hybrid Thin-Film Electrodes".
then I get this,
[INFO] Choose the available link 3: https://sci-hub.se [INFO] PDF url -> http://dacemirror.sci-hub.se/journal-article/ed7b231d4f4214bbd4c58ccf9ee781f5/chen2010.pdf [INFO] Article title -> Preparation and Characterization of Flexible Asymmetric Supercapacitors Based on Transition-Metal-Oxide Nanowire Single-Walled Carbon Nanotube Hybrid Thin-Film Electrodes [INFO] Verifying... [INFO] Verification success.
FileNotFoundError Traceback (most recent call last)