SYMBOL INDEX (647 symbols across 69 files) FILE: 001-Downloader/douyin/dy_download.py class DouYin (line 20) | class DouYin(Downloader): method __init__ (line 22) | def __init__(self): method start (line 28) | def start(self, url, path): method parse_single (line 64) | def parse_single(self): method Find (line 89) | def Find(self, string): method judge_link (line 96) | def judge_link(self): method get_data (line 116) | def get_data(self, api_post_url, max_cursor): method next_data (line 146) | def next_data(self, max_cursor): method video_info (line 185) | def video_info(self, result, max_cursor): method videos_download (line 214) | def videos_download(self, author_list, video_list, aweme_id, nickname,... FILE: 001-Downloader/downloader.py class Downloader (line 21) | class Downloader(object): method __init__ (line 33) | def __init__(self): method print_hint (line 38) | def print_hint(): method start (line 50) | def start(self, url, path): method print_ui (line 55) | def print_ui(txt): method print_all_ui (line 60) | def print_all_ui(txt, print_type: PrintType = PrintType.log): method get_beijing_time (line 66) | def get_beijing_time(): method is_expired (line 90) | def is_expired(): method add_total_count (line 99) | def add_total_count(count=1): method get_total_count (line 107) | def get_total_count(): method add_downloading_count (line 112) | def add_downloading_count(): method __sub_downloading_count (line 120) | def __sub_downloading_count(): method get_downloading_count (line 128) | def get_downloading_count(): method add_success_count (line 133) | def add_success_count(): method get_success_count (line 143) | def get_success_count(): method add_failed_count (line 148) | def add_failed_count(): method get_failed_count (line 158) | def get_failed_count(): FILE: 001-Downloader/kuaishou/ks_download.py class KuaiShou (line 23) | class KuaiShou(Downloader): method __init__ (line 27) | def __init__(self): method set_cookie (line 33) | def set_cookie(self, c): method start (line 37) | def start(self, url, path): method parse_single_trendingId (line 54) | def parse_single_trendingId(self, url): method parse_single_streamSource (line 81) | def parse_single_streamSource(self, url): method parse_user (line 107) | def parse_user(self, url): method post_single_trendingId (line 139) | def post_single_trendingId(self, url, Cookie, trendingId, area): method post_single_streamSource (line 170) | def post_single_streamSource(self, url, Cookie, photoId, area): method post_user (line 201) | def post_user(self, userId, Cookie, pcursor): method progressbar (line 228) | def progressbar(self, url, filepath, filename): method download (line 260) | def download(self, feeds): FILE: 001-Downloader/test/bilibili_video_download_v1.py function get_play_list (line 20) | def get_play_list(start_url, cid, quality): function Schedule_cmd (line 50) | def Schedule_cmd(blocknum, blocksize, totalsize): function Schedule (line 68) | def Schedule(blocknum, blocksize, totalsize): function format_size (line 87) | def format_size(bytes): function down_video (line 106) | def down_video(video_list, title, start_url, page): function combine_video (line 139) | def combine_video(video_list, title): function getAid (line 171) | def getAid(Bid): FILE: 001-Downloader/test/ff_video.py function cute_video (line 12) | def cute_video(folder): FILE: 001-Downloader/test/xhs_download.py function download_url (line 16) | def download_url(url, index): FILE: 001-Downloader/type_enum.py class PrintType (line 13) | class PrintType(Enum): FILE: 001-Downloader/ui.py class Ui (line 22) | class Ui(Frame): method __init__ (line 23) | def __init__(self, master=None): method window_init (line 32) | def window_init(self): method createWidgets (line 41) | def createWidgets(self): method save_dir (line 114) | def save_dir(self): method set_dir (line 118) | def set_dir(self, path): method download_url (line 122) | def download_url(self): method output (line 127) | def output(self, txt): method func_ui_print (line 130) | def func_ui_print(self, txt, print_type: PrintType = None): method start_download (line 142) | def start_download(self): FILE: 001-Downloader/utils.py function get_domain (line 15) | def get_domain(url: str = None): class Config (line 25) | class Config(object): method __init__ (line 31) | def __init__(self): method instance (line 38) | def instance(cls, *args, **kwargs): method get_expired_time (line 44) | def get_expired_time(self): method get_version_name (line 47) | def get_version_name(self): method get_version_code (line 50) | def get_version_code(self): FILE: 002-V2rayPool/base/net_proxy.py class Net (line 14) | class Net(object): method __init__ (line 20) | def __init__(self, timeout=8): method get_header (line 37) | def get_header(self, headers, key): method update_agent (line 45) | def update_agent(self): method get_urls (line 49) | def get_urls(self) -> []: method request (line 53) | def request(self, url, allow_redirects=False, verify=False, timeout=TI... method request_en (line 57) | def request_en(self, url, allow_redirects=False, verify=False, timeout... method request_zh (line 62) | def request_zh(self, url, allow_redirects=False, verify=False, timeout... method __request (line 67) | def __request(self, url, allow_redirects=False, verify=False, proxies=... FILE: 002-V2rayPool/core/client.py class ClientWriter (line 15) | class ClientWriter: method __init__ (line 16) | def __init__(self, group): method load_template (line 26) | def load_template(self, template_name): method transform (line 34) | def transform(self): method write (line 103) | def write(self): class Creator (line 113) | class Creator(object): method __init__ (line 118) | def __init__(self): method parse_vmess (line 122) | def parse_vmess(self, vmesslink): method parse_trojan (line 135) | def parse_trojan(self, link): method parse_ss (line 154) | def parse_ss(self, sslink): method generateAndWrite (line 200) | def generateAndWrite(self, url: str): method __kill_threading (line 241) | def __kill_threading(self): method __child_thread (line 257) | def __child_thread(self, url: str, isSysOn=False): method v2ray_start (line 269) | def v2ray_start(self, url: str, isSysOn=False): method v2ray_start_with_log (line 273) | def v2ray_start_with_log(self, url: str, isSysOn=False): FILE: 002-V2rayPool/core/conf.py class Config (line 8) | class Config: method __init__ (line 12) | def __init__(self): method get_path (line 19) | def get_path(self, key): method get_data (line 23) | def get_data(self, key): method set_data (line 26) | def set_data(self, key, value): method set_v2ray_core_path (line 31) | def set_v2ray_core_path(dir: str): method get_v2ray_core_path (line 36) | def get_v2ray_core_path(): method set_v2ray_node_path (line 41) | def set_v2ray_node_path(dir: str): method get_v2ray_node_path (line 46) | def get_v2ray_node_path(): FILE: 002-V2rayPool/core/group.py class Dyport (line 10) | class Dyport(object): method __init__ (line 11) | def __init__(self, status=False, aid=0): class Quic (line 16) | class Quic(object): method __init__ (line 17) | def __init__(self, security="none", key="", header="none"): class User (line 23) | class User(object): method __init__ (line 24) | def __init__(self, user_number, password, user_info=None): method password (line 34) | def password(self): class SS (line 38) | class SS(User): method __init__ (line 39) | def __init__(self, user_number, password, method, user_info): method __str__ (line 43) | def __str__(self): method link (line 50) | def link(self, ip, port, tls): method stream (line 54) | def stream(self): class Trojan (line 58) | class Trojan(User): method __init__ (line 59) | def __init__(self, user_number, password, email): method __str__ (line 62) | def __str__(self): method link (line 68) | def link(self, ip, port, tls): method stream (line 71) | def stream(self): class Mtproto (line 75) | class Mtproto(User): method __str__ (line 76) | def __str__(self): method link (line 82) | def link(self, ip, port, tls): method stream (line 85) | def stream(self): class Socks (line 89) | class Socks(User): method __str__ (line 90) | def __str__(self): method link (line 93) | def link(self, ip, port, tls): method stream (line 99) | def stream(self): class Vless (line 103) | class Vless(User): method __init__ (line 104) | def __init__(self, uuid, user_number, encryption=None, email=None, net... method __str__ (line 116) | def __str__(self): method stream (line 128) | def stream(self): method link (line 143) | def link(self, ip, port, tls): class Vmess (line 160) | class Vmess(User): method __init__ (line 161) | def __init__(self, uuid, alter_id: int, network: str, user_number, *, ... method stream (line 175) | def stream(self): method __str__ (line 196) | def __str__(self): method link (line 208) | def link(self, ip, port, tls): class Group (line 227) | class Group(object): method __init__ (line 228) | def __init__(self, ip, port: str, *, end_port=None, tfo=None, tls="non... FILE: 002-V2rayPool/core/profile.py class Stats (line 10) | class Stats: method __init__ (line 11) | def __init__(self, status=False, door_port=0): method __str__ (line 15) | def __str__(self): class Profile (line 19) | class Profile: method __init__ (line 20) | def __init__(self): method __str__ (line 30) | def __str__(self): method read_json (line 37) | def read_json(self): method parse_group (line 77) | def parse_group(self, part_json, group_index, local_ip): FILE: 002-V2rayPool/core/utils.py class ProtocolType (line 17) | class ProtocolType(object): class StreamType (line 24) | class StreamType(Enum): function header_type_list (line 53) | def header_type_list(): function ss_method (line 57) | def ss_method(): function xtls_flow (line 61) | def xtls_flow(): function get_ip (line 65) | def get_ip(): function port_is_use (line 77) | def port_is_use(port): function random_port (line 95) | def random_port(start_port, end_port): function is_email (line 102) | def is_email(email): function is_ipv4 (line 110) | def is_ipv4(ip): function is_ipv6 (line 124) | def is_ipv6(ip): function check_ip (line 132) | def check_ip(ip): function bytes_2_human_readable (line 136) | def bytes_2_human_readable(number_of_bytes, precision=1): function random_email (line 169) | def random_email(): function readchar (line 175) | def readchar(prompt=""): function kill_all_v2ray (line 192) | def kill_all_v2ray(): function kill_process_by_port (line 205) | def kill_process_by_port(port): function sys_proxy_on (line 213) | def sys_proxy_on(proxy, port): function sys_v2ray_on (line 220) | def sys_v2ray_on(): function sys_proxy_off (line 228) | def sys_proxy_off(): FILE: 002-V2rayPool/db/db_main.py class DBManage (line 16) | class DBManage(object): method init (line 17) | def init(self): method __add_urls_de_dup (line 22) | def __add_urls_de_dup(self, all_urls: [], new_urls: []) -> []: method start_random_v2ray_by_local (line 32) | def start_random_v2ray_by_local(self, isSysOn=False): method load_urls_and_save_auto (line 49) | def load_urls_and_save_auto(self): method load_urls_by_not_proxy (line 72) | def load_urls_by_not_proxy(self, save_local=True): method load_urls_by_net_with_proxy (line 89) | def load_urls_by_net_with_proxy(self, proxy_url=None, save_local=True): method load_urls_by_net (line 113) | def load_urls_by_net(self, proxy_url=None, save_local=True, need_proxy... method load_unchecked_urls_by_local (line 156) | def load_unchecked_urls_by_local(self): method load_enable_urls_by_local (line 162) | def load_enable_urls_by_local(self): method check_url_single (line 166) | def check_url_single(self, url: str): method check_and_save (line 177) | def check_and_save(self, urls: [], append=True): FILE: 002-V2rayPool/db/local.py class DbLocal (line 17) | class DbLocal(object): method __init__ (line 22) | def __init__(self): method __reset (line 38) | def __reset(self): method __check_url (line 45) | def __check_url(self, url: str): method is_checked_finished (line 57) | def is_checked_finished(self) -> bool: method get_checked_urls (line 61) | def get_checked_urls(self) -> []: method get_urls (line 65) | def get_urls(self, is_check=True) -> bool: method clear_local (line 99) | def clear_local(self): method save_urls (line 108) | def save_urls(self, urls, append=True): class DbEnable (line 148) | class DbEnable(object): method __init__ (line 154) | def __init__(self): method get (line 173) | def get(cls, *args, **kwargs): method init (line 179) | def init(self, config_path, def_url=None): method __back_config_json (line 195) | def __back_config_json(self): method __restore_config_json (line 207) | def __restore_config_json(self): method add_url (line 221) | def add_url(self, url: str): method add_urls (line 224) | def add_urls(self, url: []): method select_by_order (line 227) | def select_by_order(self): method get_by_order (line 232) | def get_by_order(self): method __check_and_enable (line 239) | def __check_and_enable(self): method __add (line 248) | def __add(self, url): method __adds (line 253) | def __adds(self, urls: []): method __get (line 258) | def __get(self, index): method clear_local (line 264) | def clear_local(self): method get_urls (line 273) | def get_urls(self) -> []: method get_infos (line 286) | def get_infos(self) -> []: method de_duplication (line 299) | def de_duplication(self): method save_urls (line 325) | def save_urls(self, urls, append=True): FILE: 002-V2rayPool/db/net.py function re_vmess_ss_trojan (line 18) | def re_vmess_ss_trojan(pattern, html) -> []: class PYCheck (line 43) | class PYCheck(Net): method get_curren_ip (line 44) | def get_curren_ip(self, url='https://ip.cn/api/index?ip=&type=0'): class PNFreeV2ray (line 66) | class PNFreeV2ray(Net): method get_urls (line 71) | def get_urls(self) -> []: class PNTWGithubV2ray (line 83) | class PNTWGithubV2ray(Net): method get_urls (line 88) | def get_urls(self) -> []: class PNSsfree (line 100) | class PNSsfree(Net): method get_urls (line 105) | def get_urls(self) -> []: class PNFreevpnX (line 118) | class PNFreevpnX(Net): method get_urls (line 123) | def get_urls(self) -> []: class PNGithubIwxf (line 149) | class PNGithubIwxf(Net): method get_urls (line 154) | def get_urls(self) -> []: class PYFreevpnnet (line 172) | class PYFreevpnnet(Net): method get_urls (line 178) | def get_urls(self) -> []: class PYMerlinblog (line 191) | class PYMerlinblog(Net): method get_urls (line 197) | def get_urls(self) -> []: class PYFlyingboat (line 210) | class PYFlyingboat(Net): method get_urls (line 216) | def get_urls(self) -> []: class PYIvmess (line 229) | class PYIvmess(Net): method get_urls (line 235) | def get_urls(self) -> []: class PYFreeFq (line 248) | class PYFreeFq(Net): method __get_content_url (line 253) | def __get_content_url(self, date) -> str: method __get_url_by_content_html (line 269) | def __get_url_by_content_html(self, html: str): method __get_url_by_detail_html (line 288) | def __get_url_by_detail_html(self, html: str): method __get_detail_urls (line 300) | def __get_detail_urls(self, url: str) -> []: method download_urls (line 313) | def download_urls(self, f_day=1) -> []: method get_urls (line 336) | def get_urls(self) -> []: FILE: 003-Keywords/amazon/items.py class AmazonItem (line 9) | class AmazonItem(scrapy.Item): FILE: 003-Keywords/amazon/middlewares.py class AmazonSpiderMiddleware (line 12) | class AmazonSpiderMiddleware: method from_crawler (line 18) | def from_crawler(cls, crawler): method process_spider_input (line 24) | def process_spider_input(self, response, spider): method process_spider_output (line 31) | def process_spider_output(self, response, result, spider): method process_spider_exception (line 39) | def process_spider_exception(self, response, exception, spider): method process_start_requests (line 46) | def process_start_requests(self, start_requests, spider): method spider_opened (line 55) | def spider_opened(self, spider): class AmazonDownloaderMiddleware (line 59) | class AmazonDownloaderMiddleware: method from_crawler (line 65) | def from_crawler(cls, crawler): method process_request (line 71) | def process_request(self, request, spider): method process_response (line 83) | def process_response(self, request, response, spider): method process_exception (line 92) | def process_exception(self, request, exception, spider): method spider_opened (line 102) | def spider_opened(self, spider): class AmazonProxyMiddleware (line 106) | class AmazonProxyMiddleware(object): method process_request (line 107) | def process_request(self, request, spider): FILE: 003-Keywords/amazon/pipelines.py class AmazonPipeline (line 11) | class AmazonPipeline: method process_item (line 12) | def process_item(self, item, spider): FILE: 003-Keywords/amazon/spiders/alibaba.py class AlibabaSpider (line 16) | class AlibabaSpider(scrapy.Spider): method start_requests (line 26) | def start_requests(self): method parse (line 39) | def parse(self, response): FILE: 003-Keywords/amazon/spiders/amazon.py class AmazonSpider (line 16) | class AmazonSpider(scrapy.Spider): method start_requests (line 26) | def start_requests(self): method parse (line 37) | def parse(self, response): FILE: 003-Keywords/amazon/spiders/checkip.py class CheckIpSpider (line 15) | class CheckIpSpider(scrapy.Spider): method start_requests (line 23) | def start_requests(self): method parse (line 34) | def parse(self, response): FILE: 003-Keywords/amazon/spiders/spiders.py class CheckIpSpider (line 16) | class CheckIpSpider(scrapy.Spider): method start_requests (line 27) | def start_requests(self): method parse (line 38) | def parse(self, response): class AmazonSpider (line 45) | class AmazonSpider(scrapy.Spider): method start_requests (line 59) | def start_requests(self): method parse (line 70) | def parse(self, response): class EtsySpider (line 79) | class EtsySpider(scrapy.Spider): method start_requests (line 91) | def start_requests(self): method parse (line 102) | def parse(self, response): class LakesideSpider (line 114) | class LakesideSpider(scrapy.Spider): method start_requests (line 126) | def start_requests(self): method parse (line 137) | def parse(self, response): class WordtrackerSpider (line 149) | class WordtrackerSpider(scrapy.Spider): method start_requests (line 161) | def start_requests(self): method parse (line 172) | def parse(self, response): FILE: 003-Keywords/google.py class GoogleTrend (line 17) | class GoogleTrend(object): method __init__ (line 18) | def __init__(self): method search (line 22) | def search(self, keyword, path, hl='en-US', proxies=False, retries=2, ... method __sub_search (line 79) | def __sub_search(self, i_row, worksheet, keyword, path, csv_file, time... method __search_related_queries (line 111) | def __search_related_queries(self, keyword, timeframe, tr: TrendReq) -... method __search_trends (line 129) | def __search_trends(self, i_row, worksheet, path, keyword, timeframe, ... method __draw_histogram (line 169) | def __draw_histogram(self, x: [], y: [], path, title, x_name='date', y... method __draw_graph (line 187) | def __draw_graph(self, x: [], y: [], path, title, x_name='date', y_nam... method __save_line (line 209) | def __save_line(self, path, line, mode='a'): method __get_req (line 215) | def __get_req(self, hl='en-US', proxies=False, retries=2) -> TrendReq: FILE: 003-Keywords/main.py function Write_Img (line 21) | def Write_Img(): function read_xlsl (line 31) | def read_xlsl(): FILE: 003-Keywords/mypytrends/dailydata.py function get_last_date_of_month (line 12) | def get_last_date_of_month(year: int, month: int) -> date: function convert_dates_to_timeframe (line 21) | def convert_dates_to_timeframe(start: date, stop: date) -> str: function _fetch_data (line 29) | def _fetch_data(pytrends, build_payload, timeframe: str) -> pd.DataFrame: function get_daily_data (line 48) | def get_daily_data(word: str, FILE: 003-Keywords/mypytrends/exceptions.py class ResponseError (line 1) | class ResponseError(Exception): method __init__ (line 4) | def __init__(self, message, response): FILE: 003-Keywords/mypytrends/request.py class TrendReq (line 18) | class TrendReq(object): method __init__ (line 35) | def __init__(self, hl='en-US', tz=360, geo='', timeout=(2, 5), proxies... method GetGoogleCookie (line 62) | def GetGoogleCookie(self): method GetNewProxy (line 100) | def GetNewProxy(self): method _get_data (line 109) | def _get_data(self, url, method=GET_METHOD, trim_chars=0, **kwargs): method build_payload (line 161) | def build_payload(self, kw_list, cat=0, timeframe='today 5-y', geo='', method _tokens (line 185) | def _tokens(self): method interest_over_time (line 214) | def interest_over_time(self): method interest_by_region (line 267) | def interest_by_region(self, resolution='COUNTRY', inc_low_vol=False, method related_topics (line 316) | def related_topics(self): method related_queries (line 365) | def related_queries(self): method trending_searches (line 412) | def trending_searches(self, pn='united_states'): method today_searches (line 425) | def today_searches(self, pn='US'): method top_charts (line 443) | def top_charts(self, date, hl='en-US', tz=300, geo='GLOBAL'): method suggestions (line 470) | def suggestions(self, keyword): method categories (line 486) | def categories(self): method get_historical_interest (line 500) | def get_historical_interest(self, keywords, year_start=2018, month_sta... FILE: 003-Keywords/mypytrends/test_trendReq.py class TestTrendReq (line 7) | class TestTrendReq(TestCase): method test__get_data (line 9) | def test__get_data(self): method test_build_payload (line 17) | def test_build_payload(self): method test__tokens (line 23) | def test__tokens(self): method test_interest_over_time (line 28) | def test_interest_over_time(self): method test_interest_over_time_images (line 33) | def test_interest_over_time_images(self): method test_interest_over_time_news (line 38) | def test_interest_over_time_news(self): method test_interest_over_time_youtube (line 43) | def test_interest_over_time_youtube(self): method test_interest_over_time_froogle (line 48) | def test_interest_over_time_froogle(self): method test_interest_over_time_bad_gprop (line 53) | def test_interest_over_time_bad_gprop(self): method test_interest_by_region (line 58) | def test_interest_by_region(self): method test_related_topics (line 63) | def test_related_topics(self): method test_related_queries (line 68) | def test_related_queries(self): method test_trending_searches (line 73) | def test_trending_searches(self): method test_top_charts (line 78) | def test_top_charts(self): method test_suggestions (line 83) | def test_suggestions(self): method test_ispartial_dtype (line 88) | def test_ispartial_dtype(self): method test_ispartial_dtype_timeframe_all (line 94) | def test_ispartial_dtype_timeframe_all(self): FILE: 003-Keywords/run_api.py function check_ip (line 22) | def check_ip(): function crawl_amazon (line 29) | def crawl_amazon(keywords: []): function crawl_alibaba (line 37) | def crawl_alibaba(keywords: []): FILE: 003-Keywords/v2ray_util.py function search_node (line 15) | def search_node(): function restart_v2ray (line 33) | def restart_v2ray(isSysOn=False): function kill_all_v2ray (line 48) | def kill_all_v2ray(): FILE: 004-EmailNotify/main.py class Email (line 22) | class Email(object): method __init__ (line 23) | def __init__(self, from_user, pwd, to_other): method sendMsg (line 33) | def sendMsg(self, title="", content=""): class Coin (line 56) | class Coin(object): method __init__ (line 57) | def __init__(self, coin="", diff=3.0, sleep=3, reload=1 * 60 * 60, ema... method start (line 73) | def start(self): FILE: 005-PaidSource/chrome.py function get_cookie (line 27) | async def get_cookie(page): function main (line 41) | async def main(): class Book118 (line 81) | class Book118(Net): method recycling (line 85) | def recycling(headers, aids, title): method recycling_name (line 107) | def recycling_name(headers, aids): method load_page (line 123) | def load_page(url): method parse_page (line 133) | def parse_page(content): FILE: 005-PaidSource/ff_video.py function cute_video (line 12) | def cute_video(folder): FILE: 005-PaidSource/file_util.py function file_name (line 22) | def file_name(file_dir): function deal_one_page (line 32) | def deal_one_page(): function copy_doc (line 51) | def copy_doc(): function html_cover_doc (line 74) | def html_cover_doc(in_path, out_path): function svg_cover_jpg (line 82) | def svg_cover_jpg(src, dst): function html_cover_excel (line 97) | def html_cover_excel(content, out_path): function write_to_html (line 109) | def write_to_html(content, file_path): function write_json (line 123) | def write_json(content, file_path): function read_json (line 133) | def read_json(file_path): function write (line 141) | def write(content, file_path): function read (line 151) | def read(file_path) -> str: function get_next_folder (line 163) | def get_next_folder(dst, day_diff, folder, max_size): FILE: 005-PaidSource/gsearch.py class GSearch (line 23) | class GSearch(Net): method search_page (line 24) | def search_page(self, url, pause=3): method parse_html (line 51) | def parse_html(self, html): method get_html (line 77) | def get_html(self, url): method conver_to_doc (line 83) | def conver_to_doc(self, in_name, out_name): method download_and_merge_page (line 90) | def download_and_merge_page(self, urls, name): method get_full_urls (line 125) | def get_full_urls(self, html): method get_full_titles (line 156) | def get_full_titles(self, html): method format_common_url (line 175) | def format_common_url(self, search, domain='www.google.com', start=0): method format_full_url (line 180) | def format_full_url(self, domain, as_q='', as_epq='', as_oq='', as_eq=... FILE: 005-PaidSource/gtransfer.py class GTransfer (line 27) | class GTransfer(Net): method search_page (line 28) | def search_page(self, url, pause=3): method transfer (line 52) | def transfer(self, content): method init_param (line 78) | def init_param(self, file_name): FILE: 005-PaidSource/kaoqin.py function get_days (line 13) | def get_days(year, month): # 获取输出日期的列明 function parse_excel (line 25) | def parse_excel(csv_file, out_file, names, dates): FILE: 005-PaidSource/keywords.py class Keywords (line 16) | class Keywords(Net): method get_keys_by_net (line 19) | def get_keys_by_net(self) -> []: method get_keys_by_local (line 35) | def get_keys_by_local(self) -> []: method get_titles_by_local (line 41) | def get_titles_by_local(self) -> []: method get_titles_by_net (line 47) | def get_titles_by_net(self, key): function test (line 75) | def test(): FILE: 005-PaidSource/main.py function start_task (line 20) | def start_task(): function start_proxy_task (line 77) | def start_proxy_task(): function start_task2 (line 86) | def start_task2(): function test_titles (line 138) | def test_titles(): function test_task (line 144) | def test_task(): function test_get_title (line 178) | def test_get_title(): FILE: 005-PaidSource/other_site.py class Cncic (line 22) | class Cncic(Net): method start_task (line 25) | def start_task(self): method load_list (line 74) | def load_list(self, cat, paged=1) -> []: method load_page (line 88) | def load_page(self, url): method parse_page (line 101) | def parse_page(self, page): method parse_list (line 112) | def parse_list(self, page): class Ceicdata (line 127) | class Ceicdata(Net): method start_task_1 (line 130) | def start_task_1(self): method start_task2 (line 166) | def start_task2(): method load_page (line 214) | def load_page(self, url): method parse_main_1 (line 228) | def parse_main_1(self, page): method parse_main_2 (line 241) | def parse_main_2(self, page): method parse_page_1 (line 254) | def parse_page_1(self, page): method parse_page_2 (line 265) | def parse_page_2(self, page): class Cnnic (line 311) | class Cnnic(Net): method start_task (line 315) | def start_task(): method load_page (line 342) | def load_page(self, url): method parse_page (line 359) | def parse_page(self, page): method download (line 376) | def download(self, url, path): class Othersite (line 395) | class Othersite(Net): method __init__ (line 396) | def __init__(self): method start_task (line 401) | def start_task(): method load_page (line 493) | def load_page(self, url): method parse_home (line 508) | def parse_home(self, page): method parse_list (line 516) | def parse_list(self, page): method parse_details (line 531) | def parse_details(self, page): method download_img (line 558) | def download_img(self, src, sku, i): FILE: 005-PaidSource/v2ray_util.py function search_node (line 15) | def search_node(): function restart_v2ray (line 33) | def restart_v2ray(isSysOn=False): function kill_all_v2ray (line 48) | def kill_all_v2ray(): FILE: 006-TikTok/dy_review.py function review_douyin (line 18) | def review_douyin(): # 评论 FILE: 006-TikTok/file_util.py function file_name (line 22) | def file_name(file_dir): function deal_one_page (line 32) | def deal_one_page(): function copy_doc (line 51) | def copy_doc(): function html_cover_doc (line 74) | def html_cover_doc(in_path, out_path): function svg_cover_jpg (line 82) | def svg_cover_jpg(src, dst): function html_cover_excel (line 97) | def html_cover_excel(content, out_path): function write_to_html (line 109) | def write_to_html(content, file_path): function write_json (line 123) | def write_json(content, file_path): function read_json (line 133) | def read_json(file_path): function write (line 141) | def write(content, file_path): function read (line 151) | def read(file_path) -> str: function get_next_folder (line 163) | def get_next_folder(dst, day_diff, folder, max_size): FILE: 006-TikTok/google_transfer_by_excel.py class GTransfer (line 24) | class GTransfer(object): method __init__ (line 25) | def __init__(self, file): method request (line 32) | def request(self, url, allow_redirects=False, verify=False, proxies=No... method search_page (line 42) | def search_page(self, url, pause=3): method transfer (line 66) | def transfer(self, content): method transfer_list (line 91) | def transfer_list(self, lists): FILE: 006-TikTok/img_2_webp.py function get_contain_pics (line 14) | def get_contain_pics(folder, content): function convert_pic_to_webp (line 26) | def convert_pic_to_webp(folder, sku, pic_files, t, key1, key2, key3, you... function deal_sku (line 112) | def deal_sku(folder, sku, key1, key2, key3, youtube_num): function deal_sku_list (line 120) | def deal_sku_list(): function convert_2_webp (line 125) | def convert_2_webp(src, dst): function convert_folder (line 137) | def convert_folder(src_folder, dst_folder): FILE: 006-TikTok/post_autotk.py function get_real_files (line 16) | def get_real_files(folder): function format_num (line 33) | def format_num(num): function split_en_title (line 42) | def split_en_title(spl, content): function chose_cover_title (line 56) | def chose_cover_title(transfer: str): # 截取合适的标题和封面内容 function match_info (line 77) | def match_info(pre, files, transfers): function format_time_by_str (line 99) | def format_time_by_str(date): # str转换为时间戳 function format_time_by_stamp (line 104) | def format_time_by_stamp(stamp): # 时间戳转换为时间 function random_tag (line 108) | def random_tag(tags): function write_title_one (line 125) | def write_title_one(file_name, folder): function write_title (line 134) | def write_title(): function read_title_one (line 139) | def read_title_one(file_name): function del_content (line 151) | def del_content(content, dels): function is_number (line 157) | def is_number(s): function rename_files (line 166) | def rename_files(src_folder): # 重新生成序列 function start_post (line 187) | def start_post(userId, src_folder, date_start, title_tags, transfers, mu... function all_step (line 244) | def all_step(): FILE: 006-TikTok/tikstar.py function parse_tags (line 11) | def parse_tags(page): FILE: 006-TikTok/tt_review.py function start_vpn (line 70) | def start_vpn(): # 启动代理app function review_forYou (line 85) | def review_forYou(): function review_tiktok (line 102) | def review_tiktok(): # 评论 function comment (line 139) | def comment(content): function comment_foryou (line 167) | def comment_foryou(content): function print_t (line 194) | def print_t(content): FILE: 007-CutVideoAudio/editors.py class Editors (line 21) | class Editors(object): method __init__ (line 33) | def __init__(self): method print_hint (line 38) | def print_hint(): method start (line 53) | def start(self, ffmpeg, video, music, dst): method print_ui (line 58) | def print_ui(txt): method print_all_ui (line 63) | def print_all_ui(txt, print_type: PrintType = PrintType.log): method get_beijing_time (line 69) | def get_beijing_time(): method is_expired (line 93) | def is_expired(): method add_total_count (line 102) | def add_total_count(count=1): method add_bgm_count (line 110) | def add_bgm_count(count=1): method get_total_count (line 118) | def get_total_count(): method get_bgm_count (line 123) | def get_bgm_count(): method add_success_count (line 128) | def add_success_count(): method get_success_count (line 137) | def get_success_count(): method add_failed_count (line 142) | def add_failed_count(): method get_failed_count (line 151) | def get_failed_count(): FILE: 007-CutVideoAudio/ff_cut.py class ListCut (line 19) | class ListCut(Editors): method __init__ (line 21) | def __init__(self): method start (line 27) | def start(self, ffmpeg, video, music, dst): FILE: 007-CutVideoAudio/ff_util.py function get_duration (line 12) | def get_duration(ff_file, src): function format_h_m_s (line 30) | def format_h_m_s(t): function format_ms (line 37) | def format_ms(t): function format_duration_by_ms (line 46) | def format_duration_by_ms(ms): function cut_audio (line 59) | def cut_audio(ff_file, src, start, dur, dst): function cut_video (line 75) | def cut_video(ff_file, src, start, dur, fps, bit, dst): function muxer_va (line 94) | def muxer_va(ff_file, src_v, src_a, dst): FILE: 007-CutVideoAudio/ff_util_v2.py function get_va_infos (line 15) | def get_va_infos(ff_file, src): function get_duration (line 44) | def get_duration(ff_file, src): function format_h_m_s (line 63) | def format_h_m_s(t): function format_ms (line 67) | def format_ms(t): function format_to_time (line 73) | def format_to_time(ms): function format_to_ms (line 88) | def format_to_ms(duration: str): function srt_to_ass (line 108) | def srt_to_ass(ff_file, src, dst): function cut_with_subtitle (line 112) | def cut_with_subtitle(ff_file, src, dst, srt, width, height, margin_v, f... function cut_va_full (line 153) | def cut_va_full(ff_file, src, dst, dur: str = None, start='00:00:00.000'... function cut_va_tail (line 188) | def cut_va_tail(ff_file, src, dst, dur_full: str = None, start='00:00:00... function cut_audio (line 198) | def cut_audio(ff_file, src, start, dur, dst): function cut_video (line 214) | def cut_video(ff_file, src, start, dur, fps, bit, dst): function cut_va_dur (line 233) | def cut_va_dur(ff_file, src, dst, start=0, dur=0, fps=None, bit=None): function cut_va_start_end (line 264) | def cut_va_start_end(ff_file, src, dst, start='00:00:00', end='00:00:00'... function cut_va_end (line 272) | def cut_va_end(ff_file, src, dst, start=0, end=0, fps=None, bit=None): function muxer_va (line 292) | def muxer_va(ff_file, src_v, src_a, dst): FILE: 007-CutVideoAudio/type_enum.py class PrintType (line 13) | class PrintType(Enum): FILE: 007-CutVideoAudio/ui.py class Ui (line 21) | class Ui(Frame): method __init__ (line 22) | def __init__(self, master=None): method window_init (line 31) | def window_init(self): method createWidgets (line 40) | def createWidgets(self): method save_dir (line 132) | def save_dir(self): method save_file (line 136) | def save_file(self): method set_dir (line 140) | def set_dir(self, ffmpeg=None, video=None, music=None, dst=None): method download_url (line 154) | def download_url(self): method output (line 159) | def output(self, txt): method func_ui_print (line 162) | def func_ui_print(self, txt, print_type: PrintType = None): method start_download (line 174) | def start_download(self): FILE: 007-CutVideoAudio/utils.py function get_domain (line 15) | def get_domain(url: str = None): function get_real_files (line 25) | def get_real_files(folder): function format_num (line 40) | def format_num(num): class Config (line 49) | class Config(object): method __init__ (line 55) | def __init__(self): method instance (line 62) | def instance(cls, *args, **kwargs): method get_expired_time (line 68) | def get_expired_time(self): method get_version_name (line 71) | def get_version_name(self): method get_version_code (line 74) | def get_version_code(self): FILE: 008-ChatGPT-UI/gpt.py class Gpt (line 16) | class Gpt(object): method __init__ (line 19) | def __init__(self, config: Config): method update_config (line 30) | def update_config(self, config: Config): method start (line 43) | def start(self): method print (line 55) | def print(self, content): method query_openai_stream (line 58) | def query_openai_stream(self, data: dict) -> str: method content_change (line 84) | def content_change(self, content: str): method handle_input (line 91) | def handle_input(self, content: str): method query_openai (line 124) | def query_openai(self, data: dict) -> str: FILE: 008-ChatGPT-UI/main.py class EntryWithPlaceholder (line 17) | class EntryWithPlaceholder(tk.Entry): method __init__ (line 18) | def __init__(self, master=None, placeholder='', **kwargs): method put_placeholder (line 27) | def put_placeholder(self): method remove_placeholder (line 31) | def remove_placeholder(self): method on_focus_in (line 37) | def on_focus_in(self, event): method on_focus_out (line 40) | def on_focus_out(self, event): class Application (line 45) | class Application(tk.Frame): method __init__ (line 46) | def __init__(self, config: Config, master=None): method create_config (line 56) | def create_config(self): method create_folder (line 66) | def create_folder(self): method create_key (line 76) | def create_key(self): method create_model (line 86) | def create_model(self): method create_proxy (line 96) | def create_proxy(self): method create_send (line 106) | def create_send(self): method create_widgets (line 116) | def create_widgets(self): method refresh (line 150) | def refresh(self): method func_ui_print (line 157) | def func_ui_print(self, txt): method click_config (line 160) | def click_config(self): method click_create (line 168) | def click_create(self): method click_folder (line 172) | def click_folder(self): method set_entry (line 176) | def set_entry(self, entry: tk.Entry, content): method on_return_key (line 180) | def on_return_key(self, event): method click_send (line 183) | def click_send(self): method show_text (line 195) | def show_text(self, content): method clear (line 199) | def clear(self): method copy (line 202) | def copy(self): FILE: 008-ChatGPT-UI/utils.py function get_domain (line 19) | def get_domain(url: str = None): class ConfigIni (line 24) | class ConfigIni(object): method __init__ (line 27) | def __init__(self): method instance (line 34) | def instance(cls, *args, **kwargs): method get_expired_time (line 40) | def get_expired_time(self): method get_version_name (line 43) | def get_version_name(self): method get_version_code (line 46) | def get_version_code(self): method get_title (line 49) | def get_title(self): method get_email (line 52) | def get_email(self): class Config (line 56) | class Config: method __init__ (line 75) | def __init__(self, dir: str) -> None: method load (line 85) | def load(self, file): method get (line 100) | def get(self, key, default=None): method click_create (line 103) | def click_create(self): method write_json (line 117) | def write_json(self, content, file_path): method update (line 125) | def update(self, path: str): method update_by_content (line 133) | def update_by_content(self, key: str = None, model: str = None, folder... FILE: 009-Translate/config.py function is_zh_language (line 22) | def is_zh_language(): class IniConfig (line 31) | class IniConfig(object): method __init__ (line 32) | def __init__(self): method full (line 47) | def full(self, tag, name): method main (line 50) | def main(self, name): method settings (line 53) | def settings(self, name): method loading (line 56) | def loading(self, name): method language (line 59) | def language(self, name): method config (line 62) | def config(self, name): method translate (line 65) | def translate(self): FILE: 009-Translate/core.py class Language (line 14) | class Language(object): method __init__ (line 16) | def __init__(self, id_name, full_name, zh_name=None, google=True, yand... method is_enable (line 33) | def is_enable(self, translator: str): class Translation (line 37) | class Translation(object): method __init__ (line 38) | def __init__(self): method set_to_lang (line 59) | def set_to_lang(self, lang): method set_from_lang (line 63) | def set_from_lang(self, lang): method check_select_language (line 67) | def check_select_language(self): method get_translators (line 81) | def get_translators(self): method get_languages (line 93) | def get_languages(self): method choose_translator (line 104) | def choose_translator(self, tl): method _search_id_name (line 107) | def _search_id_name(self, is_from=True): method get_id_name (line 128) | def get_id_name(self, is_from=True): method translate (line 139) | def translate(self, window, content, is_html=False, file_path: str = N... FILE: 009-Translate/load_srt.py class Tag (line 13) | class Tag: method __init__ (line 14) | def __init__(self): class Translator (line 20) | class Translator(object): method __init__ (line 24) | def __init__(self): method __callback (line 44) | def __callback(self, status, src, dst, msg=None): method __support_file (line 55) | def __support_file(self, src: str): method __deal_file (line 66) | def __deal_file(self): method __parse_srt (line 98) | def __parse_srt(self, src: str): method __parse_file (line 125) | def __parse_file(self, src: str): method __merge_content (line 135) | def __merge_content(self, tags): method __request_item (line 155) | def __request_item(self, content): method __request_list (line 175) | def __request_list(self, contents): method __merge_file (line 190) | def __merge_file(self, tags, items, dst): method __translate (line 198) | def __translate(self): method add_callback (line 223) | def add_callback(self, listener): method translate_file (line 231) | def translate_file(self, src, dst=None, from_lang='zh', to_lang='en'): FILE: 009-Translate/main.py class MainWin (line 16) | class MainWin(object): method __init__ (line 17) | def __init__(self): method advanced_ui (line 21) | def advanced_ui(self, window): method make_window (line 26) | def make_window(self): method show (line 101) | def show(self): FILE: 009-Translate/tran_test.py function t_test (line 17) | def t_test(srt_source): function translate_callback (line 22) | def translate_callback(status, **kwargs): FILE: 009-Translate/ui.py function loading_show (line 11) | def loading_show(): class LoadingWin (line 26) | class LoadingWin(object): function settings_show (line 33) | def settings_show(): FILE: 009-Translate/utils.py function get_cache (line 11) | def get_cache(key: str, default=None): function save_cache (line 24) | def save_cache(key: str, value): function read (line 34) | def read(file_path) -> str: function write (line 46) | def write(content, file_path): function get_theme (line 55) | def get_theme(): class Key (line 68) | class Key: FILE: 010-YouTubeUpload/youtube.py class YtbConst (line 30) | class YtbConst: class YtbUploader (line 81) | class YtbUploader: method __init__ (line 86) | def __init__(self) -> None: method __login (line 113) | def __login(self): method __clear_field (line 117) | def __clear_field(self, field): method __write_in_field (line 127) | def __write_in_field(self, field, string, select_all=False): method __get_video_id (line 136) | def __get_video_id(self) -> Optional[str]: method upload (line 147) | def upload(self, browser, path, meta, thumbnail=None): method exit (line 155) | def exit(self): method __wait_loading (line 158) | def __wait_loading(self): method __upload (line 173) | def __upload(self) -> Tuple[bool, Optional[str]]: