bluet / proxybroker2

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

deprecationwarning The object should be created within an async function #141

Open grandpa1946 opened 1 year ago

grandpa1946 commented 1 year ago

https://github.com/bluet/proxybroker2/blob/19e57ba6333a965412eebe50c10aba9321815209/proxybroker/providers.py#L77 DeprecationWarning: The object should be created within an async function async with aiohttp.ClientSession(

NabiKAZ commented 1 year ago

Same in Python 3.11.5

C:\Users\Nabi>proxybroker find --types HTTP HTTPS --lvl High --countries US --strict -l 10
C:\Users\Nabi\AppData\Local\Programs\Python\Python311\Lib\site-packages\proxybroker\providers.py:77: DeprecationWarning: The object should be created within an async function
  async with aiohttp.ClientSession(
C:\Users\Nabi\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\connector.py:767: DeprecationWarning: The object should be created within an async function
  super().__init__(
C:\Users\Nabi\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\cookiejar.py:67: DeprecationWarning: The object should be created within an async function
  super().__init__(loop=loop)
Ilya-Green commented 1 year ago

Same in 3.9, 3.11