Git Product home page Git Product logo

scholar's Introduction

scholar

Retrieve article information from Google Scholar in Python

Features

  • Extracts the following information for each article:
    • title
    • authors
    • year
    • citation count
    • number of online versions
    • URL to PDF
    • URL to Journal entry
    • URL to citing articles
    • URL to versions
  • Format results in json, pickle, or nested dicts
  • FieldSets provide an easy way to update the scraper as the Scholar html layout changes
  • Integrity tests to verify whether the parser is working, or identify which fields are no longer being parsed correctly
  • Command line interface to extract articles directly to terminal/file

Scholar is influenced heavily by scholar.py from Christian Kreibich, and includes a number of the patches which were incorporated into that project.

Scholar has been tested with Python 2.7 and 3.3.

Example

From the command line:

scholar.py --max_results 1
           --encoding json
           --file articles.json
           --author Marr
           Theory of edge detection

From within a Python project:

import scholar as gs
articles = gs.query(search='Theory of edge detection',
                    author='Marr',
                    max_results=1)

print(articles[0].dumps('json'))

WARNING!

Google's Terms of Service strictly prohibit scraping any Google content, including Google Scholar. Using this package is in direct violation of their Terms of Service. You use it at your own risk, and bear any consequences Google imposes upon you.

If you DO decide to use this module, please be aware that scraping Google Scholar consumes Google bandwidth and resources, and doesn't provide revenue or compensation. If you run this scraper automatically, consider limiting the number of requests per day.

scholar's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.