Doujinshi Lexicon Parser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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