Skip to content

Instantly share code, notes, and snippets.

@ideodora
Created November 17, 2014 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ideodora/791d87ae3ebe627f4079 to your computer and use it in GitHub Desktop.
Save ideodora/791d87ae3ebe627f4079 to your computer and use it in GitHub Desktop.
Urlfetch の param
from google.appengine.api import urlfetch
from urllib import urlencode
url = 'http://search.hatena.ne.jp/keyword’
params = {'mode' : 'rss',
'ie' : 'utf-8',
'word' : 'python',
'page' : 1}
res = urlfetch.fetch(url, urlencode(params), urlfetch.POST)
xml = res.content
print xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment