Skip to main content

Additional tools

Project description

MPoster

Queues

Работа с очередями:

from mposter import queues

def queues_method(data):
    print(data)

_queues = queues.Queues(threads=10, target=queues_method)
for i in range(10):
    _queues.put(i)
_queues.join()

Http

Fuck_proxies

Пул для плохих проксей:

from mposter import http

fuck_proxies = http.Fuck_proxies()
...
for proxy in proxies:
    if fuck_proxies.check_proxy(_proxies.get('http')):  # Прокси есть в пуле, она плохая, идём за новой
        continue
...
if r.status_code == 403:  # Прокси забанена, добавляем в пул
    fuck_proxies.add(_proxy_port)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mposter-1.8.11.tar.gz (6.6 kB view details)

Uploaded Source

File details

Details for the file mposter-1.8.11.tar.gz.

File metadata

  • Download URL: mposter-1.8.11.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/3.6.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9

File hashes

Hashes for mposter-1.8.11.tar.gz
Algorithm Hash digest
SHA256 874ee90a00c02d3bf96bc299c406cd2ab9011333d75cc213302785c6b888839b
MD5 be11f7ea26c35ddde5337a5b2f705590
BLAKE2b-256 a519562c6cc867bfdef4709e0661448f566ab59cc2f765d57cd15d0a55c8f869

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page