omarryhan/aiogoogle

I found AiohttpSession can't request through a proxy

Closed this issue · 2 comments

Or just I didn't found out how to do it?

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

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