Skip to content

Instantly share code, notes, and snippets.

@k5trismegistus
Created September 6, 2014 10:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save k5trismegistus/987aa71187641acab71f to your computer and use it in GitHub Desktop.
Doujinshi Lexicon Parser
# coding: UTF-8
import urllib.request
class LexiconParser():
def __init__(self):
self.comicinfodict = {}
def parse(self, url):
infopage = urllib.request.urlopen(url)
l = infopage.readlines()
for line in l:
print(line.decode('utf-8'), end="")
if __name__ == '__main__':
lp = LexiconParser()
lp.parse('http://www.doujinshi.org/book/356298/')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment