Skip to content

Instantly share code, notes, and snippets.

@shogo82148
Created May 9, 2012 07:15
Show Gist options
  • Save shogo82148/2642622 to your computer and use it in GitHub Desktop.
Save shogo82148/2642622 to your computer and use it in GitHub Desktop.
切なぃ恋ダウンローダ
import urllib2
import json
api = "http://estar.jp/api/get_novel_page_info?_=1336547125896&w=13428686&p=%d"
for i in range(1, 122):
url = api % i
res = urllib2.urlopen(url)
data = json.load(res)
print "Page:", i
print data["content"].encode("utf-8")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment