In [19]:
from mendeley import Mendeley
from local import secret, client_id
In [20]:
url = 'https://api.mendeley.com:443/documents'
In [21]:
mendeley = Mendeley(client_id, secret)
session = mendeley.start_client_credentials_flow().authenticate()
In [22]:
doi = '10.2108/zsj.12.655'
In [23]:
doc = session.catalog.by_identifier(doi=doi, view='stats')
print '"%s" has %s readers.' % (doc.title, doc.reader_count)
In [24]:
person = doc.authors[0]
In [25]:
person.fields()
Out[25]:
In [52]:
advanced = session.catalog.advanced_search(title='*', view='all', min_year=2015, max_year=2015)
In [53]:
all_results = advanced.list()
In [58]:
all_results.count
Out[58]:
In [54]:
one_doc = all_results.items[0]
In [60]:
one_doc.title
Out[60]:
In [62]:
one_doc.year
Out[62]:
In [68]:
a_person = one_doc.authors[0]
In [71]:
a_person.fields()
Out[71]:
In [67]:
one_doc.link
Out[67]:
In [ ]: