petermr / pygetpapers

a Python version of getpapers
Apache License 2.0
78 stars 9 forks source link

Incorrect logging #26

Closed ShweataNHegde closed 3 years ago

ShweataNHegde commented 3 years ago

Describe the bug pygetpapers warns that pdf isn't supported for a particular API, but goes on to download. The logging might be incorrect. To Reproduce

pygetpapers -q "biomedicine" -k 10 -o test_directory -p
WARNING: Pdf is not supported for this API
INFO: Final query is biomedicine
INFO: Total Hits are 132485
0it [00:00, ?it/s]WARNING: Abstract not found for paper 2
WARNING: Keywords not found for paper 2
WARNING: Keywords not found for paper 3
WARNING: Keywords not found for paper 4
WARNING: Abstract not found for paper 5
WARNING: Keywords not found for paper 5
WARNING: Abstract not found for paper 7
WARNING: Keywords not found for paper 7
WARNING: Abstract not found for paper 8
WARNING: Keywords not found for paper 8
WARNING: Keywords not found for paper 10
1it [00:00, 109.04it/s]
 10%|████████▎                                                                          | 1/10 [00:09<01:22,  9.12s/it]`