bluet / proxybroker2

The New (auto rotate) Proxy [Finder | Checker | Server]. HTTP(S) & SOCKS :performing_arts:
Apache License 2.0
726 stars 111 forks source link

DeprecationWarning: Using send() method on sockets returned from get_extra_info('socket') will #156

Open chapimenge3 opened 9 months ago

chapimenge3 commented 9 months ago

To Reproduce Run the below code(copy pasted form the example)

import asyncio
from proxybroker import Broker

async def show(proxies):
    while True:
        proxy = await proxies.get()
        if proxy is None: break
        print('Found proxy: %s' % proxy)

proxies = asyncio.Queue()
broker = Broker(proxies)
tasks = asyncio.gather(
    broker.find(types=['HTTP', 'HTTPS'], limit=10),
    show(proxies))

loop = asyncio.get_event_loop()
loop.run_until_complete(tasks)

Describe the bug /usr/lib/python3.10/asyncio/trsock.py:20: DeprecationWarning: Using send() method on sockets returned from get_extra_info('socket') will be prohibited in asyncio 3.9. Please report your use case to bugs.python.org. warnings.warn( DeprecationWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.10/asyncio/trsock.py:20: DeprecationWarning: Using recv() method on sockets returned from get_extra_info('socket') will be prohibited in asyncio 3.9. Please report your use case to bugs.python.org. warnings.warn( DeprecationWarning: Enable tracemalloc to get the object allocation traceback Found proxy: <Proxy US 0.39s [HTTP: Transparent] 34.64.85.78:3128> Found proxy: <Proxy KR 0.40s [HTTP: High] 211.222.252.187:80> Found proxy: <Proxy US 0.44s [HTTP: High] 104.45.128.122:80> Found proxy: <Proxy US 0.46s [HTTP: High] 159.223.183.111:80> Found proxy: <Proxy US 0.47s [HTTP: High] 47.89.240.232:56682> Found proxy: <Proxy US 0.53s [HTTP: High] 159.138.122.91:18080> Found proxy: <Proxy FR 0.56s [HTTP: High] 51.15.242.202:8888> Found proxy: <Proxy FR 0.57s [HTTP: High] 164.132.170.100:80> Found proxy: <Proxy UA 0.58s [HTTP: High] 94.45.74.60:8080> Found proxy: <Proxy CN 0.59s [HTTP: High] 60.12.168.114:9002> /usr/lib/python3.10/asyncio/trsock.py:20: DeprecationWarning: Using close() method on sockets returned from get_extra_info('socket') will be prohibited in asyncio 3.9. Please report your use case to bugs.python.org. warnings.warn( DeprecationWarning: Enable tracemalloc to get the object allocation traceback

Desktop (please complete the following information):