You're viewing a comment by yoyo and its responses.

May 20, 2010, 23:14

Hey, Pete. I keep running into problems and am having trouble figuring out what's gone wrong.

Here's my sample code...

$ from import GoogleSearch
$ gs = GoogleSearch('oh yes')
$ gs.get_results()

At this point, I get an empty list back from, from this code section...

if not self.results_info:
	self.results_info = search_info
	if self.num_results == 0:
		self.eor = True
		return []

Can you help a brother out here, please?

The odd part is that sometimes, I get results and sometimes I don't. ...almost like Google is just flat out denying me. However, I would think that I would get an HTTP error, and I am not.

Any help is much appreciated!

Comment Responses

May 21, 2010, 07:13

Hi. Xgoogle is currently broken and I don't have enthusiasm to fix it. Someone pasted a patch above but it's not indented right and again I don't have enough enthusiasm to figure out how to indent it right.

May 21, 2010, 12:46

Okay, no problem, Pete. That's all I needed to know. Thanks!

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "unix_139": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.