scholar.py icon indicating copy to clipboard operation
scholar.py copied to clipboard

No output when running sample queries

Open andandandand opened this issue 7 years ago • 8 comments

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?

andandandand avatar Apr 22 '17 22:04 andandandand

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

reacherone avatar Jun 30 '17 01:06 reacherone

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

mirceat avatar Sep 22 '17 14:09 mirceat

You might have been blocked from Google Scholar.

Alisker avatar Oct 03 '17 13:10 Alisker

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.

UnoYakshi avatar Dec 19 '17 11:12 UnoYakshi

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"

reginaadiba avatar Jun 06 '18 15:06 reginaadiba

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.

kakoor avatar Jun 12 '18 11:06 kakoor

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 :)

reginaadiba avatar Jun 12 '18 17:06 reginaadiba

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...

kakoor avatar Jun 14 '18 13:06 kakoor