ziplokk1 / incapsula-cracker-py3

Python3 compatible way to bypass sites guarded with Incapsula
https://ziplokk1.github.io/incapsula-cracker-py3/
The Unlicense
195 stars 33 forks source link

Using incapsula-cracker-py3 with proxies? #21

Closed Swordyjohn closed 6 years ago

Swordyjohn commented 6 years ago

How would you configure this to use with proxies? in the previous version you could use "crack" on your requests.session object which has enabled proxies but that doesn't seem to work for this one.

mickaelmonsieur commented 5 years ago

Solution?

eplaut commented 5 years ago

@mickaelmonsieur IncapSession inherit from requests.Session, just update session.proxies with the relevant dict ({schema: proxy}).

@ziplokk1 I suggest to add *args & **kwargs to IncapSession.__init__ and pass them to it's super