Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incapsula.errors.RecaptchaBlocked: resource blocked by re-captcha #20

Open
geniusprojects opened this issue Aug 3, 2018 · 2 comments
Open

Comments

@geniusprojects
Copy link

`from incapsula import IncapSession, WebsiteResourceParser, RecaptchaBlocked
from fake_useragent import UserAgent

class MyResourceParser(WebsiteResourceParser):
# List of arguments to pass into BeautifulSoup().find() method.
extra_find_iframe_args = [
('script', {'src': 'https://copart.com'})
]

incap_session = IncapSession(resource_parser=MyResourceParser)

response = incap_session.get('https://copart.com', headers={'User-Agent': UserAgent().chrome})`

@geniusprojects
Copy link
Author

But anytime return:

<script src="/_Incapsula_Resource?SWJIYLWA=5074a744e2e3d891814e9a2dace20bd4,719d34d31c8e3a6e6fffd425f7e032f3"> </script>

@amitbarak
Copy link

I have the same problem. All I found out is that it's only happens on some Websites but not in other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants