Comments (3)
Hi!
Thank you for your interest! Can you post a log of the error?
from pypaperbot.
I think this is due to the fact that when the article is not found, the return value of the function getPapersInfoFromDOIs
is not processed in any special way. It might be worth returning None
from getPapersInfoFromDOIs
and checking it at
PyPaperBot/PyPaperBot/__main__.py
Line 25 in ee5b502
from pypaperbot.
I guess @kir-malishev is right about the error and here the error I got.
Traceback (most recent call last):
File "C:\Users\m\AppData\Local\Programs\Python\Python38-32\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\m\AppData\Local\Programs\Python\Python38-32\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\Masaüstü\Projects\paper\venv\lib\site-packages\PyPaperBot\__main__.py", line 122, in <module>
main()
File "D:\Masaüstü\Projects\paper\venv\lib\site-packages\PyPaperBot\__main__.py", line 119, in main
start(args.query, args.scholar_pages, dwn_dir, args.min_year , max_dwn, max_dwn_type , args.journal_filter, args.restrict, DOIs, args.scihub_mirror)
File "D:\Masaüstü\Projects\paper\venv\lib\site-packages\PyPaperBot\__main__.py", line 45, in start
downloadPapers(to_download, dwn_dir, num_limit, SciHub_URL)
File "D:\Masaüstü\Projects\paper\venv\lib\site-packages\PyPaperBot\Downloader.py", line 63, in downloadPapers
pdf_dir = getSaveDir(dwnl_dir, p.getFileName())
File "D:\Masaüstü\Projects\paper\venv\lib\site-packages\PyPaperBot\Paper.py", line 31, in getFileName
return re.sub('[^\w\-_\. ]', '_', self.title)+".pdf"
File "C:\Users\m\AppData\Local\Programs\Python\Python38-32\lib\re.py", line 210, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object
from pypaperbot.
Related Issues (20)
- Add parameter --scholar_start HOT 2
- scholar pages argument HOT 3
- UnboundLocalError: local variable 'scholar_pages' referenced before assignment HOT 3
- Problem to fetch 100 PDFS using this package
- Regex or Re
- Bug download multiple times the same article
- AttributeError: 'Paper' object has no attribute 'sc_cites' and AttributeError: 'Paper' object has no attribute 'sc_year' HOT 3
- Earlier fix has broken current release\(º □ º l|l)/ HOT 6
- Add Heroku Support
- Abstract
- Cannot download an article HOT 3
- Enhancement: Feedback when CAPTCHA
- Typo
- Wanted to download in HTML format HOT 1
- Question: Is proxy also for crossref?
- Is this abandoned?
- Can Script save the PDF URL address in the results spreadsheet
- Please help Google Scholar: --query does not work HOT 1
- how to provide google scholar advanced search string?
- The papers still aren't downloading HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pypaperbot.