Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example Usage Trouble #146

Open
Brooke-white opened this issue Mar 8, 2016 · 5 comments
Open

Example Usage Trouble #146

Brooke-white opened this issue Mar 8, 2016 · 5 comments

Comments

@Brooke-white
Copy link

Mac OSX 10.11.3/Python 3.4.3
GoogleScraper 0.2.1

When running the function basic_usage() listed under Example Usage in README.md I encounter a problem:

No keywords to scrape for. Please provide either an keyword file (Option: --keyword-file) or specify and keyword with --keyword.
'NoneType' object has no attribute 'query'

I have tried altering the last line of core.py from:
if return_results: return scraper_search
to
if return_results: return session

as I believed this issue may be related to https://github.com/NikolaiT/GoogleScraper/issues/77, but it did not change anything as far as I can tell.

@37
Copy link

37 commented Mar 9, 2016

Seconded. I'm getting the exact same issue!

@yahorzabalotski
Copy link

I also have this trouble.

@paramono
Copy link

I am experiencing the same issue

However, I used keyword_file settings in my config dictionary, so I don't get "No keywords to scrape for" error. Just this one:

'NoneType' object has no attribute 'query'

Altering last line of core.py also didn't help me.

@paramono
Copy link

This pull request solves the issue: #137
Diff makes it easy to spot how to make your code work: da959f8

@paramono paramono mentioned this issue Jul 14, 2016
@guest951
Copy link

Actually your fix is not complete as also the other options need to be put in the first order of the dict in order to be parsed.
You can refer to the examples in the Examples folder which are up to date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants