Skip to content

Commit

Permalink
close #45 - v1.2.2 is out
Browse files Browse the repository at this point in the history
  • Loading branch information
ferru97 committed Nov 1, 2021
1 parent 587556c commit 4675985
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion PyPaperBot/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__= "1.2.1"
__version__= "1.2.2"
6 changes: 3 additions & 3 deletions PyPaperBot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ def start(query, scholar_results, scholar_pages, dwn_dir, proxy, min_date=None,
to_download = filter_min_date(to_download,min_date)

if num_limit_type!=None and num_limit_type==0:
to_download.sort(key=lambda x: int(x.sc_year) if x.sc_year!=None else 0, reverse=True)
to_download.sort(key=lambda x: int(x.year) if x.year!=None else 0, reverse=True)

if num_limit_type!=None and num_limit_type==1:
to_download.sort(key=lambda x: int(x.sc_cites) if x.sc_cites!=None else 0, reverse=True)
to_download.sort(key=lambda x: int(x.cites_num) if x.cites_num!=None else 0, reverse=True)

downloadPapers(to_download, dwn_dir, num_limit, SciHub_URL)

Expand Down Expand Up @@ -146,4 +146,4 @@ def main():

if __name__ == "__main__":
main()
print("""Work completed!\nIf you like this project, you can offer me a cup of coffee at --> https://www.paypal.com/paypalme/ferru97 <-- :)\n""")
print("""\nWork completed!\nIf you like this project, you can offer me a cup of coffee at --> https://www.paypal.com/paypalme/ferru97 <-- :)\n""")
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.2.1',
version = '1.2.2',
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.2.1.tar.gz',
download_url = 'https://github.com/ferru97/PyPaperBot/archive/v1.2.2.tar.gz',
keywords = ['download-papers','google-scholar', 'scihub', 'scholar', 'crossref', 'papers'],
install_requires=[
'astroid>=2.4.2,<=2.5',
Expand Down

0 comments on commit 4675985

Please sign in to comment.