Skip to content

Commit

Permalink
Merge pull request #37 from ferru97/DEV
Browse files Browse the repository at this point in the history
Version v1.1.1
  • Loading branch information
ferru97 authored Apr 19, 2021
2 parents d57c1fd + 3ae4f73 commit f890e48
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions PyPaperBot/Paper.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ def __init__(self,title=None, scholar_link=None, scholar_page=None, cites=None,


def getFileName(self):
return re.sub('[^\w\-_\. ]', '_', self.title)+".pdf"

try:
return re.sub('[^\w\-_\. ]', '_', self.title)+".pdf"
except:
return "none.pdf"

def setBibtex(self,bibtex):
x=bibtexparser.loads(bibtex, parser=None)
Expand Down
2 changes: 1 addition & 1 deletion PyPaperBot/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__= "1.1.0"
__version__= "1.1.1"
2 changes: 2 additions & 0 deletions PyPaperBot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def main():
else:
print("Error: with --query provide also --scholar-pages")
sys.exit()
else:
scholar_pages = 0


DOIs = None
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
setuptools.setup(
name = 'PyPaperBot',
packages = setuptools.find_packages(),
version = '1.1.0',
version = '1.1.1',
license='MIT',
description = 'PyPaperBot is a Python tool for downloading scientific papers using Google Scholar, Crossref, and SciHub.',
long_description=long_description,
long_description_content_type="text/markdown",
author = 'Vito Ferrulli',
author_email = '[email protected]',
url = 'https://github.com/ferru97/PyPaperBot',
download_url = 'https://github.com/ferru97/PyPaperBot/archive/v1.1.0.tar.gz',
download_url = 'https://github.com/ferru97/PyPaperBot/archive/v1.1.1.tar.gz',
keywords = ['download-papers','google-scholar', 'scihub', 'scholar', 'crossref', 'papers'],
install_requires=[
'astroid==2.4.2',
Expand Down

0 comments on commit f890e48

Please sign in to comment.