def __init__(self, title): """Initialisations.""" Common.__init__(self) self.title = title self.logger = logging.getLogger('log1') self.index = 0 self.mylist = [] self.urllist = [] self.url = "https://distrowatch.com/dwres.php?resource=bittorrent" self.output_headers = ['NAME', 'INDEX', 'UPLOADED'] self.mapper = [] self.soup = None
def __init__(self): """Initialisations.""" Common.__init__(self) self.config = SafeConfigParser() self.config_dir = os.getenv('XDG_CONFIG_HOME', os.path.expanduser(os.path.join('~', '.config'))) self.full_config_dir = os.path.join(self.config_dir, 'torrench') self.config_file_name = "config.ini" self.config_file = os.path.join(self.full_config_dir, self.config_file_name) self.url = None self.name = None self.urllist = [] self.logger = logging.getLogger('log1')
def __init__(self, title): """Initialisations.""" Common.__init__(self) self.title = title self.logger = logging.getLogger('log1') self.output_headers = ['NAME', 'INDEX', 'SIZE', 'SE/LE', 'COMPLETED', 'ADDED', ] self.categ_url = "http://linuxtracker.org/index.php?page=torrents" self.index = 0 self.categ_url_code = 0 self.mylist = [] self.category_mapper = [] self.category_mapper = [] self.mapper = [] self.url = "http://linuxtracker.org/index.php?page=torrents&search=%s&category=%d&active=1" % ( self.title, self.categ_url_code)
def __init__(self, title, page_limit): """Initialisations.""" Common.__init__(self) self.title = title self.logger = logging.getLogger('log1') self.index = 0 self.mylist = [] self.masterlist = [] self.urllist = [] self.url = "http://www.newpct.com/buscar" self.headers = ['NAME', 'INDEX', 'SIZE', 'MORE', 'ADDED'] self.mapper = [] self.soup = None self.pages = page_limit self.total_fetch_time = 0 self.soup_dict = {} self.class_name = self.__class__.__name__.lower()