├── README.md ├── logo_proxer.png └── script.py /README.md: -------------------------------------------------------------------------------- 1 | [![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/) [![GitHub contributors](https://img.shields.io/github/contributors/fsystem88/proxer.svg)](https://GitHub.com/fsystem88/proxer/graphs/contributors/) ![repo-size](https://img.shields.io/github/repo-size/fsystem88/proxer) 2 | 3 | # proxer 4 |
5 | Парсит прокси, проверяет на валидность и записывает в файл в случае успеха 6 | 7 | # Обязательно подпишитесь на канал в телеграме, там может решаться дальнейшая судьба проекта или очень важная информация!!! 8 |
---> Канал в Telegram <---
9 | 10 | # Приму в дар деньги на пиво! :)) 11 | в любой валюте))
12 | Донатерная!
13 | 1. PAYPAL: https://paypal.me/FSystem88
14 | 2. QIWI: https://qiwi.com/n/FSYSTEM88
15 | 3. YANDEX MONEY: https://money.yandex.ru/to/410015440700904
16 |
17 | Free programmers also need to eat :) 18 |
19 | 20 | # Установка и запуск 21 | 1. apt update && apt upgrade -y 22 | 2. apt install git python -y 23 | 3. python3 -m pip install requests colorama 24 | 4. git clone https://github.com/FSystem88/proxer 25 | 5. cd proxer 26 | 6. python script.py 27 |
28 | Список прокси будет находиться в той же директории (proxer) в файле proxies.txt 29 | 30 | # For Windows 31 | Просто скачать и запустить 32 | 33 | https://FSystem88.ru/programs/PROXER.exe 34 | 35 | 36 | # Обновить 37 | cd ~/proxer/ && git pull 38 | -------------------------------------------------------------------------------- /logo_proxer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FSystem88/proxer/a9bb8407c5be84369454ce0d1c69145e92c8dfd6/logo_proxer.png -------------------------------------------------------------------------------- /script.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python3 2 | # -*- coding: utf-8 -*- 3 | # Dev: FSystem88 4 | 5 | import requests as r, os, threading, random 6 | from threading import Thread 7 | from colorama import Fore,Style,Back 8 | 9 | def clear(): 10 | os.system('cls' if os.name=='nt' else 'clear') 11 | 12 | def logo(): 13 | colors = [Fore.RED, Fore.GREEN, Fore.YELLOW, Fore.BLUE, Fore.CYAN, Fore.MAGENTA, Fore.WHITE] 14 | color1 = random.choice(colors) 15 | colors.remove(color1) 16 | color2 = random.choice(colors) 17 | print(color1+"████████████████████████████████████\n█▄─▄▄─█▄─▄▄▀█─▄▄─█▄─▀─▄█▄─▄▄─█▄─▄▄▀█\n██─▄▄▄██─▄─▄█─██─██▀─▀███─▄█▀██─▄─▄█\n█▄▄▄███▄▄█▄▄█▄▄▄▄█▄▄█▄▄█▄▄▄▄▄█▄▄█▄▄█\n███████████"+color2+" by FSystem88 "+color1+"███████████\n████████████████████████████████████\n"+Style.RESET_ALL) 18 | 19 | def check(ip, prox, qtime): 20 | try: 21 | ipx = r.get("https://ident.me", proxies={'http':'http://{}'.format(prox), 'https':'http://{}'.format(prox)}, timeout=qtime).text 22 | except: 23 | ipx = ip 24 | if ip != ipx: 25 | print(Fore.GREEN+"{} good!".format(prox)) 26 | f = open("proxies.txt", "a+") 27 | f.write("{}\n".format(prox)) 28 | f.close() 29 | else: 30 | print(Fore.RED+"{} bad".format(prox)) 31 | 32 | clear() 33 | logo() 34 | try: 35 | qtime = int(input("Timeout proxy [seconds] (0 - all): ")) 36 | if qtime == 0: 37 | qtime = None 38 | except: 39 | print(Fore.RED+"\nIncorrect timeout proxy\n") 40 | exit() 41 | req = r.get("https://api.proxyscrape.com/?request=displayproxies&proxytype=http") 42 | array = req.text.split() 43 | ip = r.post("https://ident.me").text 44 | print(Back.GREEN+"Your ip: {}\n".format(ip)+Style.RESET_ALL) 45 | open("proxies.txt", "w+").close() 46 | for prox in array: 47 | thread_list = [] 48 | t = threading.Thread (target=check, args=(ip, prox, qtime)) 49 | thread_list.append(t) 50 | t.start() 51 | --------------------------------------------------------------------------------