Questions tagged [xgoogle]

A python library for doing search on Google.

xgoogle is a python library for doing search on Google Search, Google Sponsored Links Search, Google Sets and Google Translate. The current version is 1.4.

14 questions
3
votes
3 answers

xgoogle python library is not working any more?

I was using the xgoogle python library for one of my projects. It was working fine till recently. I am not getting the resultset that I used to get before. If anyone who has used this library written by Peter Krummins, faced a similar situation, can…
Suhas
  • 31
  • 1
  • 2
3
votes
2 answers

how to include python modules in linux?

I found this xgoogle python modules http://github.com/pkrumins/xgoogle, very interesting. How exactly should i include or install these files in linux?? if i want to do something like this using xgoogle python module? >>from xgoogle.search import…
Abhilash Muthuraj
  • 2,008
  • 9
  • 34
  • 48
3
votes
2 answers

How do i install xgoogle for Windows?

I have tried installing xgoogle for python through easy_install but it didn't work. I have already downloaded the file but from xgoogle.search import GoogleSearch, SearchError gives me an error that xgoogle is not recgnised as a module. What should…
Moushumi Mitra
  • 111
  • 2
  • 3
  • 6
2
votes
3 answers

Install xGoogle from pip?

Is there a way to install xGoogle through pip? If so, how do I do this? I have already tried: $ pip install xGoogle If there is not a way to install using pip, can I do it through easy-install? I am using Windows 10 for my operating system.
MagisterTech
  • 107
  • 1
  • 12
1
vote
1 answer

How to use xgoogle

I am using the xgoogle library, whenever i ask it to get the number of search results it comes up with zero. (its not my code i copied it directly from the examples) any ideas?
Matthew Downey
  • 259
  • 1
  • 6
  • 10
1
vote
0 answers

Does xgoogle still work? If not, what's a good what's a good substitute?

I run the following code but it does not work. This is from the readmefile of the xgoogle library. from xgoogle.search import GoogleSearch gs = GoogleSearch("hi") gs.results_per_page = 25 results = gs.get_results() print results This returns an…
Jan Klaas
  • 289
  • 7
  • 20
1
vote
1 answer

Create Dictionary out of for loops

I would like to build a dictionary out of iterating over two different for loops: My code is: from bs4 import BeautifulSoup from xgoogle.search import GoogleSearch, SearchError try: gs = GoogleSearch("search query") gs.results_per_page =…
Diego
  • 637
  • 3
  • 10
  • 24
1
vote
2 answers

Python xgoogle library - site specific search

I am using the xgoogle python library to try to search as specific site. The code works for me when I do not use the "site:" indicator in the keyword search. If I do used it, the result set is empty. Does anyone have any thoughts how to get the…
Nick
  • 159
  • 1
  • 7
0
votes
2 answers

xgoogle library fails with AttributeError

I am try to use the xgoogle python library for the purpose of me entering a term, and it returning how many search results there are for it. Here is my code: from xgoogle.search import GoogleSearch word1 = 'aardvark' word2 = 'ablaze' words =…
Matthew Downey
  • 259
  • 1
  • 6
  • 10
0
votes
0 answers

Error Printing Results in Python while Google Scraping

I'm using google search API to extract information from the google search and displaying it as well as saving it in the console I'm having error, as the code is not going into the for loop Here is the code: import csv from xgoogle.search import…
0
votes
1 answer

Is xgoogle no longer working?

I just want to confirm if xgoogle is no longer working for automated search. I followed the first example on this website http://www.catonmat.net/blog/python-library-for-google-search/. from xgoogle.search import GoogleSearch, SearchError try: gs…
Joseph Zhou
  • 315
  • 2
  • 11
0
votes
1 answer

xgoogle google search return top url

I am using xgoogle to return top 10 url for a given keyword. The code is: from xgoogle.search import GoogleSearch gs = GoogleSearch("google scraper") gs.results_per_page = 10 results = gs.get_results() for res in results: print…
sulav_lfc
  • 772
  • 2
  • 14
  • 34
0
votes
1 answer

How do you use google's API to do a simple search in Python?

I would love a nice, friendly example to help me out, or even a link to help me get started. I'm baffled by google's "cloud application" interface and none of the search tutorials seem to readily point to vanilla google search. It seems they are…
Pinwheeler
  • 1,061
  • 2
  • 13
  • 26
0
votes
1 answer

how to make xgoogle return google first page

Have been trying to use this xgoogle to search for pdfs on the internet.. the problem am having is that if i search for "Medicine:pdf" the first page returns to me is not the first page google returns,i.e if i actually use google.... dont know…
Slipstream
  • 15
  • 4