コード例 #1
0
 def __init__(self):
     self.Net = net_fn.Net()
     self.Thread_Check_Max = 500
     self.All_Check_List = dict()
     self.Source_List = '["https://webanetlabs.net/freeproxylist/proxylist_at_03.01.2017.txt", "https://webanetlabs.net/freeproxylist/proxylist_at_09.01.2017.txt", "http://01717.ir/wp-content/uploads/2017/06/Proxy.txt", "https://github.com/yrjyrj123/MobikeAgent/blob/master/proxies.txt", "http://www.simpleproxy.ru/core/1b0bf30d851b94bcd94738acdda8578e.txt", "https://a.pomf.cat/yqbwjb.txt", "http://kishabajuku.si/awstats/data/awstats052017.kishabajuku.si.txt", "http://www.engagemedia.com.mx/awstats/data/awstats072017.engagemedia.com.mx.txt", "http://hospitalexport.com/userfiles/mahan.txt", "https://www.che.upd.edu.ph/film/awstats/awstats062018.www.filminstitute.upd.edu.ph.txt", "https://proxyscra.pe/proxies/HTTPProxies.txt", "https://www.modaizle.com/wp-content/uploads/2017-proxy-listesi.txt", "http://elektroline.ch/awstats/data/awstats012017.elektroline.ch.txt", "http://www.ecatalogues.net/ecatalog/tmp/awstats/awstats062018.ecatalogues.net.txt", "http://www.cokme.com.ua/awstats/data/awstats012017.cokme.com.ua.txt", "http://www.youtubebot.org/updaterNfo/socks.txt", "http://dhcook.net/awstats/data/awstats112016.dhcook.net.txt", "http://forum.layposters.com/awstats/data/awstats072017.casinofit.com.txt", "https://prodigyy.host/u/9sfk.txt"]'
     self.Source_List = json.loads(self.Source_List)
     self.Proxy_Queue = Queue()
     self.Init_Proxy_Test_Thread()
     self.OK_List = []
コード例 #2
0
    def __init__(self):
        self.Net = net_fn.Net()
        self.m3u8 = m3u8.M3U8_Downloader(50)
        self.Video_Page_Queue = Queue()
        self.Video_Page_Scapre_Thread_Num = 50  #最大爬蟲線程數
        self.Video_Page_Thread_List = []
        self.Video_Page_Links = []
        self.Loading_Video_Page_Links()  #讀取已保存的影片頁面列表

        self.Video_Download_Links = []
        self.Video_Download_Links_Queue = Queue()
        self.Video_Download_Links_Queue_Thread_Num = 50  # 最大爬蟲線程數
        self.Loading_Video_Download_Link()  #讀取已保存的影片下載連結
コード例 #3
0
 def __init__(self):
     self.Net = net_fn.Net()
     # self.audio_link_queue = Queue()
     self.max_download_thread = 3  # 最大線程數
     self.down_thread_log = []  # 線程紀錄
     self.album_name = ""
     self.album_type = ""
     self.album_id = ""
     self.header = {
         'Accept':
         '*/*',
         'Accept - Encoding':
         'gzip, deflate, br',
         'Accept-Language':
         'zh-TW,zh;q=0.9,en-US;q=0.8,en;q=0.7',
         'User-Agent':
         'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36',
         # 'xm - sign': '9273ddeffcbfeca6eea0cabb6acb1d24(2)1557539813220(18)1557539816877',
     }
     self.album_num = 0
コード例 #4
0
    def __init__(self):
        self.Net = net_fn.Net()
        self.save_dirs = r'F:\Downloads\喜馬拉雅'  # 檔案儲存位址

        self.max_download_process = 10  # 最大線程數
        self.target_url = ""
        self.target_maxpage = 0

        self.pg_header_str = ""
        self.pg_header = None
        self.pg_rs = None
        self.pg_bs = None

        self.album_type = ""
        self.album_id = ""
        self.album_num = 0
        self.album_name = ""

        self.track_names = []
        self.track_links = []
コード例 #5
0
 def __init__(self):
     self.Net = net_fn.Net()
コード例 #6
0
ファイル: Shopee.py プロジェクト: smw1414/RutenToShopee
 def __init__(self,Root_Dir="",Cookie_Path=""):
     self.web = None
     self.Root_Dir = Root_Dir
     self.Cookie_Path = Cookie_Path
     self.Net = net_fn.Net()
     self.Cookie_Data = self.Loading_Cookie()