-
Website
http://www.javarants.com -
Original page
http://www.javarants.com/2008/08/01/yuil-is-dead-4hoursearch-is-now-online/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
lhl
1 comment · 6 points
-
Jay @ work at home
1 comment · 1 points
-
spullara
17 comments · 4 points
-
Quad Core Imac
2 comments · 1 points
-
Tane Piper
1 comment · 1 points
-
-
Popular Threads
Seriously, cool job. It is also super fast.
:-)
-Russ
Ugh. Bad push, just saw it in the log, fixed.
Sorry it didn't work well for you. The image is the #1 image search result for the same query. If you click on the image rather than the search result it will go through to the site that it was found on.
Traceback (most recent call last):
File "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 499, in __call__
handler.get(*groups)
File "/base/data/home/apps/yoolsearch/1.209/search.py", line 37, in get
result = search(query, count=10)
File "/base/data/home/apps/yoolsearch/1.209/yos/boss/ysearch.py", line 41, in search
url = SEARCH_API_URL % (vertical, version, quote_plus(command), start, count, lang, region, filter, dimensions) + params(more)
File "/base/python_dist/lib/python2.5/urllib.py", line 1213, in quote_plus
return quote(s, safe)
File "/base/python_dist/lib/python2.5/urllib.py", line 1205, in quote
res = map(safe_map.__getitem__, s)
KeyError: u'\xe9'
Can you have control on the ads shown or can you only display Yahoo Ads?
http://code.djangoproject.com/browser/django/tr...
http://blabtech.blogspot.com
http://www.4hoursearch.com/search?q=python+quot... ;)
That fails in the same way as it is a wrapper on quote_plus.
This isn't included in Google App Engine -- it has an older version of Django -- but I ported it over and it works great! Please test out the unicode support now.
resulted an error:
Traceback (most recent call last):
File "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 499, in __call__
handler.get(*groups)
File "/base/data/home/apps/yoolsearch/1.216/search.py", line 52, in get
template_values['image'] = image_response['resultset_images'][0]
KeyError: 'resultset_images'
An underlying BOSS web service regressed temporarily, it has been corrected.
Other than that, good work!
Hi Jim, I wasn't able to reproduce this. It may be that there aren't enough results -- I am not handling that case well. Can you give me an example query where it doesn't work for you?
My error checking is not "robust". That looks like I didn't get a response back from the urlfetch. Could have been Google App Engine or BOSS. I should check for that and put up the fail whale.
EuropeanKiss | Free Online Dating Community
http://www.europeankiss.org
I just tried yours and it works great. Can you help me to add a functional button similar to Google's "I'm feeling lucky". I'm kinda suck at python.
Thank you.
Results better than Cuil.
The image thing is better than Cuil's, but I still think it a rediculus idea.
Carry on the good job !
I was playing around with it and tried searching for my morning jacket (http://www.4hoursearch.com/search?q=my+morning+...) but got an error:
Traceback (most recent call last):
File "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 499, in __call__
handler.get(*groups)
File "/base/data/home/apps/yoolsearch/1.234/search.py", line 39, in get
resultset_glue = glue(q)
File "/base/data/home/apps/yoolsearch/1.234/yos/boss/ysearch.py", line 56, in glue
data = load(url)
File "/base/data/home/apps/yoolsearch/1.234/yos/boss/ysearch.py", line 64, in load
data = rest.download(url)
File "/base/data/home/apps/yoolsearch/1.234/yos/crawl/rest.py", line 18, in download
result = urlfetch.fetch(url)
File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", line 216, in fetch
raise DownloadError(str(e))
DownloadError: ApplicationError: 3
I built a small search and used some of your code from the 4hoursearch in it. Do you think its fine or i should rewrite everything from scratch. The url is:
http://itsfrosty.appspot.com/
Would have sent a personal email, but you don't have contact info published on the blog :(
regards
himanshu
Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py", line 499, in __call__
handler.get(*groups)
File "C:\Program Files\Google\google_appengine\4hoursearch\search.py", line 37, in get
result = search(query, count=10)
File "C:\Program Files\Google\google_appengine\4hoursearch\yos\boss\ysearch.py", line 44, in search
data = load(url)
File "C:\Program Files\Google\google_appengine\4hoursearch\yos\boss\ysearch.py", line 64, in load
data = rest.download(url)
File "C:\Program Files\Google\google_appengine\4hoursearch\yos\crawl\rest.py", line 18, in download
result = urlfetch.fetch(url)
File "C:\Program Files\Google\google_appengine\google\appengine\api\urlfetch.py", line 267, in fetch
raise DownloadError(str(e))
DownloadError: ApplicationError: 2 timed out
Sam