zhiyzuo / python-scopus

PyScopus
http://zhiyzuo.github.io/python-scopus/
MIT License
23 stars 29 forks source link

ValueError in simple retrieve_author() call #5

Closed Michael-E-Rose closed 7 years ago

Michael-E-Rose commented 7 years ago

I wanted to retrieve author details for Akiko Fujimoto with ID 7102932229:

>>> info = scopus.retrieve_author("7102932229")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/pyscopus/pyscopus.py", line 103, in retrieve_author
  File "build/bdist.linux-x86_64/egg/pyscopus/utils.py", line 203, in _parse_author_retrieval
ValueError: invalid literal for int() with base 10: ''

I'm on Ubuntu 14.04 using with Python 2.7. I however don't know which version of pyscopus I am on as __version__ is not defined.

zhiyzuo commented 7 years ago

Hi Mike,

Please try update your package and rerun these commands. They should be okay now. But please note that I rename the file for Scopus class from pyscopus.py to scopus.py. Please refer to the quick start page on the package's homepage.

Thank you for pointing these bugs out for me to modify this package.

Have a great weekend!