Skip to content

Instantly share code, notes, and snippets.

@uchan-nos
Created July 2, 2013 03:52
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 uchan-nos/5906670 to your computer and use it in GitHub Desktop.
Save uchan-nos/5906670 to your computer and use it in GitHub Desktop.
url = 'http://toi.kuronekoyamato.co.jp/cgi-bin/tneko'
data = {
'number00' : '1',
'number01' : '000000000000'
}
data_e = urllib.parse.urlencode(data)
req = urllib.request.Request(url, data_e.encode('sjis'))
res = urllib.request.urlopen(req)
soup = BeautifulSoup(res.read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment