ziplokk1 / incapsula-cracker

Use to bypass sites which use incapsula to block access to webscraping bots.
The Unlicense
45 stars 16 forks source link

This is not working with latest update from Incapsula #1

Closed moeseth closed 8 years ago

ziplokk1 commented 8 years ago

Can I get a url that's not working to debug with?

moeseth commented 8 years ago

http://www.pyithuhluttaw.gov.mm/?q=news/1762

ziplokk1 commented 8 years ago

checkout the hotfix branch. It should work if using a session object. Unfortunately the IncapSession class is broken but you can use a Session object instead.

import requests

from incapsula import crack

session = requests.Session()
r = session.get('http://www.pyithuhluttaw.gov.mm/?q=news/1762')
r = crack(session, r)  # unblocked url
moeseth commented 8 years ago

Thank you