fabiobatalha / crossrefapi

A python library that implements the Crossref API.
BSD 2-Clause "Simplified" License
265 stars 44 forks source link

query error #22

Closed CNGaoWenbo closed 4 years ago

CNGaoWenbo commented 4 years ago

I am a fresh user, when applying syntax w1 = works.query(title='zika') return TypeError: list indices must be integers or slices, not str But it is OK when query author and others, have any ideas?

fabiobatalha commented 4 years ago

Hi @CNGaoWenbo

The field title is deprecated in Crossref API.

The recommendation is to use the field bibliographic

w1 = works.query(bibliographic='zika')

I will remove the mentions for the field title from the documentation.

fabiobatalha commented 4 years ago

Fixed in version : https://github.com/fabiobatalha/crossrefapi/releases/tag/1.4.0

CNGaoWenbo commented 4 years ago

@fabiobatalha Thanks