![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网络爬虫
lightingsui
坚持-进步-成功
展开
-
SpringBoot使用爬虫(初级阶段)
SpringBoot使用爬虫(初级阶段) springboot使用爬虫 首先需要在引导类上加上@EnableScheduling注解 然后,建立一个task包 在task包内,新建一个类,并且将这个类加入到spring的applicationContent中。归属spring去管理 然后,建立方法,并且在方法上指定注解@Scheduled(fixedDelay = 3600 * 1000) ...原创 2019-10-30 15:09:22 · 1074 阅读 · 0 评论 -
网络爬虫(二)--Jsoup的使用
网络爬虫(二)–Jsoup的使用 需要引入的依赖 <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.2</version> &l...原创 2019-10-30 09:53:46 · 245 阅读 · 0 评论 -
网络爬虫(一)
网络爬虫Spider 1、爬虫入门案例 public class SpiderDemo { public static void main(String[] args) throws IOException { // 相当于打开浏览器 CloseableHttpClient httpClient = HttpClients.createDefault(); ...原创 2019-10-17 09:01:55 · 100 阅读 · 0 评论