Is there any way to use aiohttp client with socks proxy?

后端 未结 2 1556
长发绾君心
长发绾君心 2021-02-14 17:12

Looks like aiohttp.ProxyConnector doesn\'t support socks proxy. Is there any workaround for this? I would be grateful for any advice.

2条回答
  •  广开言路
    2021-02-14 17:26

    aiosocks does not work with the newer version 3.+ of aiohttp. You can use aiosocksy to implement socks proxy.

    To check whether aiosocksy is working you can look at the following code sample https://stackoverflow.com/a/53657536/6735546

提交回复
热议问题