Skip to content

Commit f890e48

Browse files
authored
Merge pull request #37 from ferru97/DEV
Version v1.1.1
2 parents d57c1fd + 3ae4f73 commit f890e48

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

PyPaperBot/Paper.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ def __init__(self,title=None, scholar_link=None, scholar_page=None, cites=None,
3131

3232

3333
def getFileName(self):
34-
return re.sub('[^\w\-_\. ]', '_', self.title)+".pdf"
35-
34+
try:
35+
return re.sub('[^\w\-_\. ]', '_', self.title)+".pdf"
36+
except:
37+
return "none.pdf"
3638

3739
def setBibtex(self,bibtex):
3840
x=bibtexparser.loads(bibtex, parser=None)

PyPaperBot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__= "1.1.0"
1+
__version__= "1.1.1"

PyPaperBot/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def main():
107107
else:
108108
print("Error: with --query provide also --scholar-pages")
109109
sys.exit()
110+
else:
111+
scholar_pages = 0
110112

111113

112114
DOIs = None

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
setuptools.setup(
77
name = 'PyPaperBot',
88
packages = setuptools.find_packages(),
9-
version = '1.1.0',
9+
version = '1.1.1',
1010
license='MIT',
1111
description = 'PyPaperBot is a Python tool for downloading scientific papers using Google Scholar, Crossref, and SciHub.',
1212
long_description=long_description,
1313
long_description_content_type="text/markdown",
1414
author = 'Vito Ferrulli',
1515
author_email = 'vitof970@gmail.com',
1616
url = 'https://github.com/ferru97/PyPaperBot',
17-
download_url = 'https://github.com/ferru97/PyPaperBot/archive/v1.1.0.tar.gz',
17+
download_url = 'https://github.com/ferru97/PyPaperBot/archive/v1.1.1.tar.gz',
1818
keywords = ['download-papers','google-scholar', 'scihub', 'scholar', 'crossref', 'papers'],
1919
install_requires=[
2020
'astroid==2.4.2',

0 commit comments

Comments
 (0)