Лайфхаки

Маленькие, полезные хитрости

Прокси чекер на python. mosajjal/proxychecker

22.12.2022 в 08:56

Прокси чекер на python. mosajjal/proxychecker

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

master

Switch branches/tags

View all branches

View all tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

1 branch 0 tags

Code

  • Local
  • Codespaces

    Clone

    Use Git or checkout with SVN using the web URL.

    Work fast with our official CLI. Learn more .

    Open with GitHub Desktop Download ZIP

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

    14 commits

Files

Permalink

Failed to load latest commit information.

Type

Name

Latest commit message

Commit time

README.md

checker.py

ProxyChecker

A Simple Proxy checking tool written in Python3.

Requirements

Python 3.5 or higher

aiohttp

Usage:

Create a file in the same directory as checker.py, fill it with ip:port (one line each), like this:

  • 127.0.0.1:8888
  • 192.168.1.1:8080
  • PROXY:PORT

Save it (e.g. list.txt), then call the script like this:

$ python3 checker.py list.txt

Notes:

  1. For now, only HTTP proxies are supported.
  2. You can change the test URL to whatever you want in the script
  3. This script usesasyncioand does the tests in parallel mode.
  4. This proxy uses "via" header option to test if the URL is a valid Proxy.

Proxy checker linux. himanshub16/proxychecker

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

master

Switch branches/tags

View all branches

View all tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

1 branch 2 tags

Code

  • Local
  • Codespaces

    Clone

    Use Git or checkout with SVN using the web URL.

    Work fast with our official CLI. Learn more .

    Open with GitHub Desktop Download ZIP

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

    6 commits

Files

Permalink

Failed to load latest commit information.

Type

Name

Latest commit message

Commit time

README.md

proxy_check.sh

proxychecker

The version number is mentioned in the main file : proxychecker.sh

CLI tool to check current proxy configuration in a Linux system. This helps while debugging/checking current configurations.

Free software licensed under GNU GPL v2.

How to use this tool?

Just execute this tool through bash and it will do its job.

What does it depend on?

Nothing special apart from standard command line utilities as grep.

What does it check?

It checks for proxy configurations of following three places : Terminal, Desktop environment, and apt (aka software center, not really). Technically they are : gsettings : org.gnome.system.proxy /etc/apt/apt.conf .bashrc/.bash_profiles

About

Simple tool to check proxy configurations on Debian/Ubuntu/Fedora Linux system.

Proxy-checker-python github. maxmalysh/python-proxy-checker

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

master

Switch branches/tags

View all branches

View all tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

1 branch 0 tags

Code

  • Local
  • Codespaces

    Clone

    Use Git or checkout with SVN using the web URL.

    Work fast with our official CLI. Learn more .

    Open with GitHub Desktop Download ZIP

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

    4 commits

Files

Permalink

Failed to load latest commit information.

Type

Name

Latest commit message

Commit time

README.md

proxy.py

Python proxy checker

Description

Simple multithreaded proxy checker. Takes several text files as inputs.

Usage

The script looks for all .txt files in some directory named "in_directory", takes all the proxies out, checks them and then puts the result to the file named "out_filename". The input format is "ip:port" (e.g., "127.0.0.1:8080").

Proxy grabber python. TalGoldDev/Proxy-Grabber

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

master

Switch branches/tags

View all branches

View all tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

1 branch 0 tags

Code

  • Local
  • Codespaces

    Clone

    Use Git or checkout with SVN using the web URL.

    Work fast with our official CLI. Learn more .

    Open with GitHub Desktop Download ZIP

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

    2 commits

Files

Permalink

Failed to load latest commit information.

Proxy python. Features

    Fast & Scalable

      Threadless executions using asyncio

      Made to handletens-of-thousandsconnections / sec

# On Macbook Pro 2019 / 2 .4 GHz 8 -Core Intel Core i9 / 32 GB RAM ❯ ./helper/benchmark.sh CONCURRENCY: 100 workers, TOTAL REQUESTS: 100000 req Summary: Success rate: 1.0000 Total: 2.5489 secs Slowest: 0.0443 secs Fastest: 0.0006 secs Average: 0.0025 secs Requests/sec: 39232.6572 Total data: 1.81 MiB Size/request: 19 B Size/sec: 727.95 KiB Response time histogram: 0.001 |■■■■■ 0.001 |■■■■■■■■■■■■■■■■■■■■■ 0.002 |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 0.002 |■■■■■■■■■■■■■■■■■■■■■■ 0.003 |■■■■■■■■■■■■■■■■

Consultandto control number of CPU cores utilized.

Seefor more details and for how to run benchmarks locally.

Programmable

  • Customize proxy behavior using. Example:
      --plugins proxy.plugin.ProxyPoolPlugin
  • Enable builtin. Example:
      --enable-web-server --plugins proxy.plugin.WebServerPlugin
  • Enable builtin. Example:
      --enable-reverse-proxy --plugins proxy.plugin.ReverseProxyPlugin
  • Plugin API is currently in development phase . Expect breaking changes. Seeon how to ensure reliability across code changes.
  • Real-time Dashboard

    • Optionally, enable.
      • Use--enable-dashboard
      • Then, visithttp://localhost:8899/dashboard
    • proxy.pyat runtime
    • Extend dashboard frontend usingtypescriptbased plugins
    • Dashboard is currently in development phase Expect breaking changes.

    Proxy-checker github. Examples

    For every commands ofproxy_checker. It will return0if every proxies address worked and1if it didn't (POSIX convention).

    1. Check if single proxy works:

    • Command:proxy_checker 127.0.0.1:80.
    • Description: This will test a simple proxy address.

    2. Check if multiple proxy works:

    • Command:proxy_checker 127.0.0.1:81 127.0.0.2:81.
    • Description: This will test if both proxy addresses works.

    3. Append working proxies to output file:

    • Command:proxy_checker -o working_proxies.txt 127.0.0.1:81 127.0.0.2:81.
    • Description: This will test if both proxy addresses works. It will also append the proxies address that works into the output specified file.

    4. Use an input file to test:

    • Command:proxy_checker -i proxies_to_test.txt.
    • Description: This will test if all proxy addresses from the input fileproxies_to_test.txt. The format of the file should be the following:

    file: proxies_to_test.txt ########################## 123.0.0.1:80 127.0.0.1:81 8.8.8.8:1234 …

    4. Use a input file to test, append working proxies to output file:

    • Command:proxy_checker -i proxies_to_test.txt -o working_proxies.txt.
    • Description: This will test if all proxy addresses from the input fileproxies_to_test.txt. It will also append the proxies address that works into the output specified file.