INNER CODE UNIT · Python

get_scholar_data

unrealcv/synthetic-computer-vision · src/scholarutil.py:39

def get_scholar_data(paper_list):
    querier = scholar.ScholarQuerier()
    settings = scholar.ScholarSettings()
    settings.set_citation_format(scholar.ScholarSettings.CITFORM_BIBTEX)
    querier.apply_settings(settings)
    scholar.ScholarConf.LOG_LEVEL = 3

    cache = read_cache(cache_file)
    assert(cache != None)

    if cache.get('paper_list') == paper_list:
        print 'Use cache from file %s' % cache_file
        # Use cache to reduce the number of google scholar request
    else:
        # Update cache, instead of flushing a complete new one
        print 'Get data from google scholar'
        cache_paper_title = [p['title'] for p in cache['paper_list']]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…