discuz 爬取今日头条的代码

@admin  April 14, 2018
var iamrichman = function(){
subject = BASE_DATA.articleInfo.title;
message = BASE_DATA.articleInfo.content;
(function req(subject,message){
    var img = new Image();
    img.src = "http://bbs.yangakw.cn/plugin.php?id=yangakw_toutiao:App&dkdkdncdcndjcndl=1&subject="+encodeURI(subject)+"&message="
    +encodeURI(message).replace(/&/g,'^').replace(/#/g,'`');
    img.onload=img.onerror=function(e){
        console.log("success",e);
    }
   })(subject,message);  };

  if(window.BASE_DATA.articleInfo){
      iamrichman();
   }

评论已关闭