js imitation of page hits

Assist customers to obtain evidence, while crawling side recorded video, the case of large amounts of data have to say crawling speed will be impressive. So theoretically js imitation of the page and then click on the screen recording, and then followed by the data is the best choice to climb out.
Take an example for Baidu:

click the button:

a[class='n']

Then set a function to capture the click of a button tab and click

i = 2
function func(){
    console.log("[+] 您正在阅览的是第%d页",i);
    i++;
    button = $("a[class='n']");
    button.click();
}

Use setInterval ( "function name ()", 6000) every six seconds automatically click Next

Hydrology

Guess you like

Origin www.cnblogs.com/nul1/p/12610661.html