From 4675985292def95a02eb648fb31ed0b6446110be Mon Sep 17 00:00:00 2001 From: ferru97 Date: Mon, 1 Nov 2021 12:06:22 +0100 Subject: [PATCH] close #45 - v1.2.2 is out --- PyPaperBot/__init__.py | 2 +- PyPaperBot/__main__.py | 6 +++--- setup.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/PyPaperBot/__init__.py b/PyPaperBot/__init__.py index 92ab6ce..2f3e507 100644 --- a/PyPaperBot/__init__.py +++ b/PyPaperBot/__init__.py @@ -1 +1 @@ -__version__= "1.2.1" +__version__= "1.2.2" diff --git a/PyPaperBot/__main__.py b/PyPaperBot/__main__.py index a1266fd..c1c2a9e 100644 --- a/PyPaperBot/__main__.py +++ b/PyPaperBot/__main__.py @@ -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) @@ -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""") diff --git a/setup.py b/setup.py index b710598..b6bfbfd 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ 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, @@ -14,7 +14,7 @@ author = 'Vito Ferrulli', author_email = 'vitof970@gmail.com', 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',