浏览器采集数据

 

function c(i){console.log(i)};ia=document.getElementsByClassName("xlistju");len=ia.length;function c(i){console.log(i)};iaimg=document.getElementsByClassName("chromeimg"); for(var i=0;i<len;i++){c(ia[i].outerText);c(iaimg[i].src);}

 

jz_d={}
with open('juzimi.txt','r',encoding='utf-8') as fr:
tmp_l=[]
for i in fr:
ii=i.replace('\n','')
if 'http' not in ii:
tmp_l.append(ii)

else:
jz_d[ii]=' '.join(tmp_l)
tmp_l=[]


 

var oReq = new XMLHttpRequest();

oReq.open("GET", "localhost?mystr");

oReq.send();

 

posted @ 2018-02-03 22:03  papering  阅读(357)  评论(0编辑  收藏  举报