Skip to content

Commit 4675985

Browse files
committed
close #45 - v1.2.2 is out
1 parent 587556c commit 4675985

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

PyPaperBot/__init__.py

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

PyPaperBot/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ def start(query, scholar_results, scholar_pages, dwn_dir, proxy, min_date=None,
3737
to_download = filter_min_date(to_download,min_date)
3838

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

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

4545
downloadPapers(to_download, dwn_dir, num_limit, SciHub_URL)
4646

@@ -146,4 +146,4 @@ def main():
146146

147147
if __name__ == "__main__":
148148
main()
149-
print("""Work completed!\nIf you like this project, you can offer me a cup of coffee at --> https://www.paypal.com/paypalme/ferru97 <-- :)\n""")
149+
print("""\nWork completed!\nIf you like this project, you can offer me a cup of coffee at --> https://www.paypal.com/paypalme/ferru97 <-- :)\n""")

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.2.1',
9+
version = '1.2.2',
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.2.1.tar.gz',
17+
download_url = 'https://github.com/ferru97/PyPaperBot/archive/v1.2.2.tar.gz',
1818
keywords = ['download-papers','google-scholar', 'scihub', 'scholar', 'crossref', 'papers'],
1919
install_requires=[
2020
'astroid>=2.4.2,<=2.5',

0 commit comments

Comments
 (0)