dnlcrl / pyscholar Goto Github PK
View Code? Open in Web Editor NEWA 'supervised' parser for Google Scholar
License: MIT License
A 'supervised' parser for Google Scholar
License: MIT License
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
$ 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'")]
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)
README references scholar.py
, but it should be pyscholar.py
.
Hi,
Is it possible to get all papers published by a college using PyScholar? If yes, how?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.