I found AiohttpSession can't request through a proxy
Closed this issue · 2 comments
KaIKuxy commented
Or just I didn't found out how to do it?
omarryhan commented
Hey,
Instead of Instantiating Aiogoogle like that:
aiogoogle = Aiogoogle(seesion_factory=ClientSession(proxy={...}))
Do it like this:
aiogoogle = Aiogoogle(seesion_factory=lambda: ClientSession(proxy={...}))
It's also mentioned here: https://aiogoogle.readthedocs.io/en/latest/#aiogoogle.client.Aiogoogle
KaIKuxy commented
Hey,
Instead of Instantiating Aiogoogle like that:
aiogoogle = Aiogoogle(seesion_factory=ClientSession(proxy={...}))
Do it like this:
aiogoogle = Aiogoogle(seesion_factory=lambda: ClientSession(proxy={...}))
It's also mentioned here: https://aiogoogle.readthedocs.io/en/latest/#aiogoogle.client.Aiogoogle
got it, thank you so much