petermr / pygetpapers

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

-x attribute missing in `pygetpapers` #8

Closed ShweataNHegde closed 3 years ago

ShweataNHegde commented 3 years ago

getpapers only retrives the .json file without -x attribute.

C:\Users\shweata>getpapers -q viral epidemics -k 10 -o viral_epidemics
info: Searching using eupmc API
(node:15160) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
info: Found 382653 open access results
warn: This version of getpapers wasn't built with this version of the EuPMC api in mind
warn: getpapers EuPMCVersion: 5.3.2 vs. 6.5 reported by api
info: Limiting to 10 hits
Retrieving results [==============================] 100% (eta 0.0s)
info: Done collecting results
info: limiting hits
info: Saving result metadata
info: Full EUPMC result metadata written to eupmc_results.json
info: Individual EUPMC result metadata records written
info: Extracting fulltext HTML URL list (may not be available for all articles)
info: Fulltext HTML URL list written to eupmc_fulltext_html_urls.txt

Whereas, pygetpapers retrieves .xml, and pickle files.

C:\Users\shweata>pygetpapers -q "viral epidemics" -k 10 -o viral_epidemics_py
*/Building the Query*/
*/Making the Request to get all hits*/
*/Got the Content */
Time elapsed: 25.745445251464844
Reading Dictionary for paper 1
Wrote the important Attrutes to a dictionary
Reading Dictionary for paper 2
Author list not found for paper 2
Wrote the important Attrutes to a dictionary
Reading Dictionary for paper 3
Author list not found for paper 3
Wrote the important Attrutes to a dictionary
Reading Dictionary for paper 4
Wrote the important Attrutes to a dictionary
Reading Dictionary for paper 5
Wrote the important Attrutes to a dictionary
Reading Dictionary for paper 6
Wrote the important Attrutes to a dictionary
Reading Dictionary for paper 7
Wrote the important Attrutes to a dictionary
Reading Dictionary for paper 8
Author list not found for paper 8
Wrote the important Attrutes to a dictionary
Reading Dictionary for paper 9
Wrote the important Attrutes to a dictionary
Reading Dictionary for paper 10
Wrote the important Attrutes to a dictionary
*/Writing the xml papers to memory*/
*/Making the Request to get full text xml*/
*/Done*/
*/Wrote the xml paper 1 at C:\Users\shweata\viral_epidemics_py\papers\PMC7573891\fulltext.xml/
Time elapsed: 1.8330342769622803
*/Updating the pickle*/
...
ayush4921 commented 3 years ago

Added in version 0.0.2