ckreibich / scholar.py

A parser for Google Scholar, written in Python
2.1k stars 777 forks source link

No output when running sample queries #94

Open andandandand opened 7 years ago

andandandand commented 7 years ago

Hello, when running python scholar.py -c 1 --author "albert einstein" --phrase "quantum theory" > output.txt

In a machine with Ubuntu 14.04 and Python 2.7.12 :: Anaconda 4.0.0 (64-bit), I get no output. I get no output to console either when removing > output.txt.

What should I change to get the output shown in the example?

reacherone commented 7 years ago

Hi @andandandand ,

I once came across the same problem as you, then I found that I didn't install BeautifulSoup in my environment. You could check that.

Yijing

mirceat commented 6 years ago

Hello,

I have the same issue although beautifulsoup4 is installed.

Python 3.6.2 | packaged by conda-forge | (default, Jul 23 2017, 22:59:30) [GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux

beautifulsoup4 (4.5.3)

Thanks, Mircea

Alisker commented 6 years ago

You might have been blocked from Google Scholar.

UnoYakshi commented 6 years ago

As I understand the problem, multiple unused arguments in the output URL (SearchScholarQuery.get_url()) somehow results for calling Google's captcha. At least the URL is correct, but somehow ScholarQuerier.send_query() and txt() don't seem to work correctly for now.

reginaadiba commented 6 years ago

Hi @andandandand , have you find or solve the problem? I have the same problem, two days ago it still worked but now I get no output too. Please let me know if you found something, thank you.

Fyi, I run in command line with this script: python /home/data/scholar.py --txt-globals --author "Albert Einstein"

kakoor commented 6 years ago

HI @andandandand and @reginaadiba and everyone else, I have the same problem! Anyone having an idea of what's wrong? Im running with python scholar.py --author "Mathew", but it doesn't matter what and how I search for articles, I get no output nor error messages.

reginaadiba commented 6 years ago

Hi @kakoor I think you have been blocked by google scholar too. That was my problem and i tried to search in google and there were many people got the same problem. It happened because one day before i got the problem, i tried to take a lot of data from scholar and that's why i got block. Wait for 1-2 days and don't try to doing any activity with scholar. That's what i do and now my scholar.py is back to normal. *sorry for my bad english, i hope your program get normal soon :)

kakoor commented 6 years ago

Thank you @reginaadiba! I've waited for 2 days now, however I still get no output. I'll wait one more day and then see, but if anyone else knows anything else that could be wrong I would appreciate it! Maybe I've imported it in the wrong way or something...