<commit_before>#VERSION: 0.5
#Author: Douman (<EMAIL>)

#Note: should work just fine for qBittorent with python3

from novaprinter import prettyPrinter
from helpers import download_file
from html.parser import HTMLParser
import urllib.request

class tokyotoshokan(object):
    def __init__(self):
        self.url = 'http://tokyotosho.info'
        self.name = 'Tokyo Toshokan'
        self.supported_categories = {'all': '0', 'anime': '1', 'eroge': '14' }
        #self.supported_categories = {'all': '0', 'anime': '1', 'anime(non-english)': '10',
        #                        'manga': '3', 'drama': '8', 'music': '2',
        #                        'music video': '9', 'raw': '7', 'hentai': '4',
        #                        'eroge': '14', 'batch': '11', 'jav': '15', 'other': '5'}
        #

    class MyHtmlParseWithBlackJack(HTMLParser):
        def __init__(self, results, url, searchIndexes):
            super().__init__(convert_charrefs=True)
            self.item_found = False<commit_msg>eroge->games category ;)<commit_after>#VERSION: 0.6
#Author: Douman (<EMAIL>)

#Note: should work just fine for qBittorent with python3

from novaprinter import prettyPrinter
from helpers import download_file
from html.parser import HTMLParser
import urllib.request

class tokyotoshokan(object):
    def __init__(self):
        self.url = 'http://tokyotosho.info'
        self.name = 'Tokyo Toshokan'
        self.supported_categories = {'all': '0', 'anime': '1', 'games': '14' }
        #self.supported_categories = {'all': '0', 'anime': '1', 'anime(non-english)': '10',
        #                        'manga': '3', 'drama': '8', 'music': '2',
        #                        'music video': '9', 'raw': '7', 'hentai': '4',
        #                        'eroge': '14', 'batch': '11', 'jav': '15', 'other': '5'}
        #

    class MyHtmlParseWithBlackJack(HTMLParser):
        def __init__(self, results, url, searchIndexes):
            super().__init__(convert_charrefs=True)
            self.item_found = False
{'fraction_non_alphanumeric': 0.16067028092656482, 'fraction_numerical': 0.02365697387875801, 'mean_word_length': 2.5865724381625443, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1255018', 'n_tokens_mistral': 678, 'n_tokens_neox': 650, 'n_words': 165}