How to use the scholarly._SESSION function in scholarly

To help you get started, we’ve selected a few scholarly examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github perrette / papers / papers / extract.py View on Github external
def _get_page_fast(pagerequest):
    """Return the data for a page on scholar.google.com"""
    import scholarly
    resp = scholarly._SESSION.get(pagerequest, headers=scholarly._HEADERS, cookies=scholarly._COOKIES)
    if resp.status_code == 200:
        return resp.text
    else:
        raise Exception('Error: {0} {1}'.format(resp.status_code, resp.reason))

scholarly

Simple access to Google Scholar authors and citations

Unlicense
Latest version published 1 year ago

Package Health Score

63 / 100
Full package analysis