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

雪球要求验证! #496

Open
armyyou opened this issue Nov 26, 2024 · 1 comment
Open

雪球要求验证! #496

armyyou opened this issue Nov 26, 2024 · 1 comment

Comments

@armyyou
Copy link

armyyou commented Nov 26, 2024

env

OS: win7/ win10 / mac / linux
PYTHON_VERSION: 3.x
EASYTRADER_VERSION: 0.xx.xx
BROKER_TYPE: gj / ht / xq / xxx

problem

发生异常: Exception
cant get portfolio info, portfolio html : <!doctypehtml><title></title><meta name="viewport"content="width=device-width,initial-scale=1"><style type="text/css">body,div,html,p,span{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:0 0}body{background:#fff}</style><script>void 0===window.console&&(console={log:function(){}}),window.waf_is_mobile=!1,function(i){(/(android|bb\d+|meego).+mobile|avantgo|bada/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)/|plucker|pocket|psp|series(4|6)0|symbian|treo|up.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|)|g1 u|g560|gene|gf-5|g-mo|go(.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(i.substr(0,4)))&&(window.waf_is_mobile=!0)}(navigator.userAgent||navigator.vendor||window.opera);var style=document.createElement("style");style.type="text/css",css=waf_is_mobile?".nc-container{margin-top:30px;text-align:center}#aliyunCaptcha-sliding-slider{background:#ff6a00!important}#waf_nc_h5_block{position:fixed;position:absolute;width:100%;height:100%;top:0;bottom:0;left:0;z-index:9999}.waf-nc-h5-mask{background:#777;opacity:.5;filter:alpha(opacity=50);width:100%;height:100%}.waf-nc-h5-wrapper{width:94%;position:absolute;top:20%;left:50%;margin-top:-20%;margin-left:-47%;padding:5% 1%;background:#fff;border-radius:3px;box-sizing:border-box}.waf-nc-h5-panel{width:100%;text-align:center}.waf-nc-h5-icon{margin:0 auto}.waf-nc-h5-description{margin-top:40px;font-size:14px;color:#595959}#newTraceid{text-align:center;font-size:12px;color:#999}":".nc-container{margin-top:30px}#aliyunCaptcha-sliding-slider{background:#ff6a00!important}.aliyun-captcha{display:flow!important}.head{position:relative;height:70px;padding-left:25px;border-bottom:1px solid #ebecec}.content{width:1000px;min-height:250px;margin-top:164px!important;margin-left:auto;margin-right:auto}.left{width:300px;height:198px;float:left;background:url(https://img.alicdn.com/imgextra/i1/O1CN01L12MaQ1ZwfYKk7Yrc_!!6000000003259-2-tps-900-594.png) no-repeat;background-size:cover}.right{margin-left:250px;padding-left:140px}.contentbg{width:100%;min-height:250px}.right p{font-size:14px;color:#333;line-height:25px;height:25px;text-align:left}#newTraceid{margin-left:250px!important;padding-left:140px!important;font-size:14px;color:rgba(153,153,153,1)}";try{style.appendChild(document.createTextNode(css))}catch(i){style.styleSheet.cssText=css}</script><div id="PC"style="display:none">

<div id="captcha-element"class="nc-container">

<button id="button"class="login-btn"style="display:none">
<div id="umfp"style="display:inline;width:1px;height:1px;overflow:hidden"><div id="H5"style="display:none">
<div id="WAF_NC_H5_WRAPPER"class="waf-nc-h5-wrapper">
<img class="waf-nc-h5-icon"src="//img.alicdn.com/imgextra/i1/O1CN01L12MaQ1ZwfYKk7Yrc!!6000000003259-2-tps-900-594.png"alt=""height="132"width="200"><div id="tips_message_mobile"class="waf-nc-h5-description">为了更好的访问体验,请进行验证
<div id="h5_captcha-element"class="nc-container"><button id="h5_button"class="login-btn"style="display:none">
<script>if(window.waf_is_mobile){var traceid=document.getElementById("newTraceid");try{traceid.remove(),document.getElementById("WAF_NC_H5_WRAPPER").appendChild(traceid)}catch(e){}}var requestInfo;function splitKV(e){var t=e.indexOf("=");return-1==t?[e]:[e.slice(0,t),e.slice(t+1)]}function reform(e){for(var t=document.createElement("form"),n=(t.action=reGenUrl(e),t.method="POST",t.style="display:none",Base64.decode(requestInfo.data).split("&")),r=0;r<n.length;++r){var o=splitKV(n[r]),i=document.createElement("input");i.type="hidden",i.name=o[0],i.value=o[1]||"",t.appendChild(i)}document.body.appendChild(t),t.submit()}var removeKeys=["u_aref","u_asig","u_atoken"];function reGenUrl(e){var t=location.href.slice(0,location.href.length-location.hash.length);if(0!=location.search.length){for(var n,r,o=(o=location.search.slice(1)).split("&"),i=[],a=0;a<o.length;++a)r=o[a],n=decodeURIComponent(r.split("=",1)[0]),-1===removeKeys.indexOf(n)&&i.push(r);i="?"+i.join("&"),t=t.replace(location.search,i)}function c(e,t){return e[e.length-1]==t}for(a in 0===location.search.length&!c(t,"?")&&(t+="?"),c(t,"&")&&(t=t.slice(0,t.length-1)),c(t,"?")||(t+="&"),e)t+=encodeURIComponent(a)+"="+encodeURIComponent(e[a])+"&";return t=t.slice(0,t.length-1),t+=location.hash}function reGet(e){location.replace(reGenUrl(e))}function getRenderData(){return document.getElementById("renderData").value}var Base64=function(){var y=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"],w=function(e){for(var t=0,n=0,r=e.length-1;0<=r;--r)1==e[r]&&(t+=Math.pow(2,n)),++n;return t};return{decode:function(e){for(var t=e.length,n=0,r=y,o=[],i=0,a=(e="="==e.charAt(t-1)?"="==e.charAt(t-2)?(n=4,e.substring(0,t-2)):(n=2,e.substring(0,t-1)):e).length;i<a;++i)for(var c=e.charAt(i),s=0,l=r.length;s<l;++s)if(c==r[s]){var d=function(e){for(var t=[];0<e;){var n=e%2;e=Math.floor(e/2),t.push(n)}return t.reverse(),t}(s),u=d.length;if(0<6-u)for(var f=6-u;0<f;--f)d.unshift(0);o=o.concat(d);break}for(var h,p=o=0<n?o.slice(0,o.length-n):o,m=[],g="",v=0,I=p.length;v<I;)if(0==p[v])h=w(p.slice(v,v+8)),g+=String.fromCharCode(h),v+=8;else{for(var =0;v<I&&1==p[v];)++,++v;for(m=m.concat(p.slice(v+1,v+8-)),v+=8-
;1<
;)m=m.concat(p.slice(v+2,v+8)),v+=8,--
;h=w(m),g+=String.fromCharCode(h),m=[]}return g}}}();function initCaptcha(){var e={userId:requestInfo.userId,userUserId:requestInfo.userUserId,SceneId:requestInfo.sceneId,region:requestInfo.region,UserCertifyId:requestInfo.traceid,mode:"embed",element:"#captcha-element",button:"#button",slideStyle:{width:window._waf_is_mobile?320:360,height:40},language:"sgp"==requestInfo.region?"en":"cn",immediate:!0,success:function(e){e={u_atoken:requestInfo.token,u_asig:e};requestInfo.refer&&(e.u_aref=requestInfo.refer),("GET"===requestInfo.type?reGet:reform)(e)},fail:function(e){window.console&&console.log(e)},getInstance:function(e){captcha=e},verifyType:"1.0"};document.getElementById(window._waf_is_mobile?"H5":"PC").style.display="block",window._waf_is_mobile&&(e.element="#h5_captcha-element",e.button="#h5_button",screen.width<=320)&&(e.rem=.9375,e.slideStyle.height=42.66666667),initAliyunCaptcha(e)}function convertTimestampToString(e){e=parseInt(e,10),e=new Date(e);return e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2)+" "+("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)}var head=document.head||document.getElementsByTagName("head")[0];head.appendChild(style),en_tips={tips_title:"Access Verification",tips_message:"For better experience, please slide to complete the verification process before accessing the web page.",tips_message_mobile:"For better experience, please complete the verification process."},cn_tips={tips_title:"访问验证",tips_message:"别离开,为了更好的访问体验,请进行验证,通过后即可继续访问网页",tips_message_mobile:"为了更好的访问体验,请进行验证"},window.onload=function(){var e,t=getRenderData(),n=(t=(t=t.replace("var requestInfo = ","")).slice(0,t.length-1),"滑动验证页面"),t=(requestInfo=JSON.parse(t)).traceid,r=cn_tips,o="请求时间";for(e in"sgp"==requestInfo.region&&(r=en_tips,o="TIME",n="Verification"),document.title=n,r)document.getElementById(e).innerText=r[e];document.getElementById("newTraceid").innerHTML=o+": "+convertTimestampToString(t.slice(8,21))+"
Tr".concat("aceID: ")+t;var i=document.createElement("script"),n=new Date;i.src="//o.alicdn.com/captcha-frontend/aliyunCaptcha/AliyunCaptcha.js?t="+(n.getFullYear()+(n.getMonth()+1)+n.getDate()+n.getHours()),"onload"in i?i.onload=function(){initCaptcha()}:i.onreadystatechange=function(){/loaded|complete/.test(i.readyState)&&initCaptcha()},head.appendChild(i)}</script><textarea style="display:none">appkey: "CF_APP_WAF", // 应用标识var AC_Opt = {userUserId: requestInfo.userUserId</textarea><textarea id="renderData" style="display:none">var requestInfo = {"data":"","region":"cn","sceneId":"19x5u7lo","token":"f16d0cf4beb28d21cd6d5e35121d81a7","traceid":"1a0c640b17325975299122572e0109","type":"GET","userId":"HpadJlQnz2zSKcSmjXBaqQvjYUvP4jMJIk/ZwGNDNiM=","userUserId":"suMwX3KoeJt91GEPkcSYODH10kDndIN+5aDtVwyPuWI="};</textarea>

how to repeat

@binpeiluo
Copy link

有解决了的吗?

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