def testGetBestProfile(self): archive, rate = ArchiveOrg.get_best_archive( root_domain="susodigital.com", thread_size=100, profile_check=10, pass_threshold=0.7, res_limit=2000) profile_link = ArchiveOrg.get_archive_link(archive) print("best profile:", profile_link, "rate:", rate)
def testGetBestProfileBatch(self): file_path = "/Users/superCat/Desktop/PycharmProjectPortable/test/profile_test_source.txt" domains = FileHandler.read_lines_from_file(file_path) save_path = "/Users/superCat/Desktop/PycharmProjectPortable/test/profile_archive.csv" CsvLogger.log_to_file_path(save_path, [ArchiveDetail.get_title()]) for domain in domains: print("begin domain:", domain) try: archive = ArchiveOrg.get_best_archive(root_domain=domain, thread_size=100, profile_check=10, pass_threshold=0.9, res_limit=2000) CsvLogger.log_to_file_path(save_path, [archive.to_tuple()]) except Exception as ex: print(ex)
def testGetBestProfile(self): archive, rate = ArchiveOrg.get_best_archive(root_domain="susodigital.com", thread_size=100, profile_check=10, pass_threshold=0.7, res_limit=2000) profile_link = ArchiveOrg.get_archive_link(archive) print("best profile:", profile_link, "rate:", rate)