Last active
April 22, 2019 09:45
-
-
Save Danilnd/8896a0a28c7601fc2b4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ParserExpert.ru | |
// Chrome —› Инструменты —› Консоль JavaScript (Ctrl + Shift + J) | |
var alllinks = ''; | |
crawler = setInterval(function() { | |
$('.dataTable tbody td.rPosLast .popover-holder.nowrap a:not(.external-link)').each(function() { | |
alllinks += $(this).text() + '\n'; | |
}); | |
var elem = $('a.next.paginate_button:not(.paginate_button_disabled)'); | |
if(elem.length==0){ | |
console.log(alllinks); | |
clearInterval(crawler); | |
}else{ | |
elem.click(); | |
} | |
}, 10000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment