Foreword
When you read this, probably by my thumbs up, or was I commented on, or paid attention to.
Whim, had such an idea, designed a batch thumbs up, review procedures,
In plain life, give us some surprise and joy O (∩_∩) O ~~
A batch operation
like
You deserve to be carefully written articles like oh!
The upper right corner back to a praise it ~ ~ ~
There are comments, concerns and so on. . . .
Second, the technique used
1.webmagic
Add url need crawling
Eligible crawl content in process inside
2.selenium
Setting drive
System.setProperty("webdriver.chrome.driver", "CHROMEPATH/chromedriver.exe");
Initialization driver
WebDriver driver = new ChromeDriver();
Enter the page
driver.get("https://i.csdn.net/#/uc/follow-list");
To obtain the required elements
WebElement submit = li.findElement(By.cssSelector(".submit"));
Click on
submit.click();