Coder Social home page Coder Social logo

dnlcrl / pyscholar Goto Github PK

View Code? Open in Web Editor NEW
79.0 7.0 19.0 43 KB

A 'supervised' parser for Google Scholar

License: MIT License

Python 100.00%
python google-scholar articles-google-scholar parse google-scholar-cluster cluster supervised webdriver scraper selenium article citation querier

pyscholar's Issues

Citation request triggers "Your cookies seem to be disabled." response

Problem: I can't get Bibtex citations using PyScholar.

Replicating: Install PyScholar, run the example single-article Albert Einstein query without "--citation bt", which will succeed, and then again with "--citation bt" in the parameter list, and the Google Scholar page in Firefox (via geckodriver) complains that "Your cookies seem to be disabled." Cookies are not disabled in the browser.

Replicated on: Ubuntu 18.04, Anaconda Python 2.7, Firefox 60.0.2, and Windows 10, Anaconda Python 2.7. Firefox 60.0.1

image

How do you get to run?

I cloned your git repo, can't get it to run.
In .../Pyscholar/src running:
python pyscholar.py -c 1 --author "albert einstein" --phrase "quantum theory"

resulting in:

~/PyScholar/src/pyscholar.py(216)main()
-> print e
(Pdb)

Filter by college

Hi,

Is it possible to get all papers published by a college using PyScholar? If yes, how?

No such file or directory after entering capcha in firefox

$ python2.7 pyscholar.py -c 1 --author "albert einstein" --phrase "quantum theory" 

/usr/local/lib/python2.7/site-packages/bs4/__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

To get rid of this warning, change this:

 BeautifulSoup([your markup])

to this:

 BeautifulSoup([your markup], "lxml")

  markup_type=markup_type))
Traceback (most recent call last):
  File "pyscholar.py", line 225, in <module>
    sys.exit(main())
  File "pyscholar.py", line 221, in main
    querier.quit()
  File "/home/edd/PyScholar/src/query.py", line 468, in quit
    copytree(self.firefox.profile.path, FF_PROFILE_PATH)
  File "/usr/local/lib/python2.7/shutil.py", line 208, in copytree
    raise Error, errors
shutil.Error: [('/tmp/tmpyJSdF2/webdriver-py-profilecopy/lock', '../ffprofile/lock', "[Errno 2] No such file or directory: '/tmp/tmpyJSdF2/webdriver-py-profilecopy/lock'")]

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.