var a =document.getElementsByClassName('SearchResult__title-text');
for (i = 0;i < a.length;i++){
    console.log(a[i].innerText);
}

  

 

var a =document.getElementsByClassName('search-result-item-title');
for (i = 0;i < a.length;i++){
	if(a[i].href.indexOf("xxx") === -1)
		{
    	console.log(a[i].href);
		}
}

  

var a =document.getElementsByClassName('search-result-item-title');
var b =  document.getElementsByClassName('ant-btn ant-btn-primary');
var j = 0;
for (i = 0;i < a.length;i++){
	
	if(a[i].outerText.length == 0)
	{	
		
		i++;
		j++;
		
	}
	
    if(a[i].href.indexOf("zoom") === -1)
        {
			console.log(a[i].outerText+":"+b[j].outerText);
			j++;
        }
}

  

posted on 2018-08-01 09:45  小白闯天下  阅读(150)  评论(0编辑  收藏  举报