WorksContainer class

class habanero.WorksContainer(input)[source]

WorksContainer: Class for working with works results

Return type

list

Usage:

from habanero import Crossref, WorksContainer
cr = Crossref()

res = cr.works(ids=['10.1136/jclinpath-2020-206745', '10.1136/esmoopen-2020-000776'])
x = WorksContainer(res)
x
x.works
x.doi
x.license
x.title
x.abstract

res2 = cr.works(limit = 2)
x = WorksContainer(res2)
x
x.works
x.doi
x.license
x.title
x.abstract

res3 = cr.members(ids = 98, works = True, limit = 5)
x = WorksContainer(res3)
x
x.works
x.doi
x.license
x.title
x.abstract