You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
590 B
26 lines
590 B
4 years ago
|
# -*- coding: utf-8 -*-
|
||
|
# Author: kelvinBen
|
||
|
# Github: https://github.com/kelvinBen/AppInfoScanner
|
||
|
import os
|
||
|
import re
|
||
|
import config
|
||
|
import hashlib
|
||
|
from queue import Queue
|
||
|
import libs.core as cores
|
||
|
|
||
|
|
||
|
class DownloadTask(object):
|
||
|
|
||
|
def __init__(self):
|
||
|
self.path = path
|
||
|
|
||
|
def start(self):
|
||
|
input_path = self.path
|
||
|
if input_path.startswith("http://") or input_path.startswith("https://"):
|
||
|
if input_path.endswith("apk"):
|
||
|
# 用来下载APK或者缓存H5或者页面内容
|
||
|
pass
|
||
|
|
||
|
return input_path
|
||
|
|