Closed unixfox closed 4 years ago
So there seems to be a script right before the one required by the challenge
<script type="text/javascript">
//<![CDATA[
!function(){var t=function(){try{return!!window.addEventListener}catch(t){return!1}},n=function(n,e){t()?document.addEventListener("DOMContentLoaded",n,e):document.attachEvent("onreadystatechange",n)};n(function(){document.getElementById("h-content").style.display="block"},!1)}();
//]]>
</script>
// ---- The one required below
<script type="text/javascript">
//<![CDATA[
(function(){
var a = function() {try{return !!window.addEventListener} catch(e) {return !1} },
b = function(b, c) {a() ? document.addEventListener("DOMContentLoaded", b, c) : document.attachEvent("onreadystatechange", b)};
b(function(){
var a = document.getElementById('cf-content');a.style.display = 'block';
...
</script>
(this might be a update to cloudflare challenge page, but i dont see it on kissanime.ru) changing init.py L249 from
javascript = re.search(r'\<script type\=\"text\/javascript\"\>\n(.*?)\<\/script\>',body, flags=re.S).group(1) # find javascript
to
all_scripts = re.findall(r'\<script type\=\"text\/javascript\"\>\n(.*?)\<\/script\>',body, flags=re.S) # find javascript
javascript = next(filter(lambda w: "jschl-answer" in w,all_scripts))
finds the one having something which would most probably be in the Githubissues.
Before creating an issue, first upgrade cfscrape with
pip install -U cfscrape
and see if you're still experiencing the problem. Please also confirm your Node version (node --version
ornodejs --version
) is version 10 or higher.Make sure the website you're having issues with is actually using anti-bot protection by Cloudflare and not a competitor like Imperva Incapsula or Sucuri. And if you're using an anonymizing proxy, a VPN, or Tor, Cloudflare often flags those IPs and may block you or present you with a captcha as a result.
Please confirm the following statements and check the boxes before creating an issue:
pip install -U cfscrape
Python version number
Run
python --version
and paste the output below:cfscrape version number
Run
pip show cfscrape
and paste the output below:Code snippet involved with the issue
Complete exception and traceback
(If the problem doesn't involve an exception being raised, leave this blank)
URL of the Cloudflare-protected page
https://hypixel.net/
URL of Pastebin/Gist with HTML source of protected page
https://paste.ee/p/TiNCJ