2 Star 36 Fork 6

Haha / Java爬取公众号文章

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Zlib

Java爬取公众号文章

项目介绍

前提是你得有一个公众号账号

  1. 用接口模拟公众号扫码登录,得到登录状态的cookie和token
  2. 有了登录状态就可以请求搜索公众号接口
  3. 选中公众号,查询该公众号发布的文章

技术栈

  1. Java
  2. OkHttp3
  3. Cookie管理
  4. Jackson
  5. Java awt包,用来显示二维码图片
  6. FutureTask 线程返回值

演示

得到二维码图片,手机端扫描

扫码确认,搜索公众号

搜索公众号下的文章列表

待探索的功能

  1. Cookie持久化,本地序列化或者redis分布式
  2. IP代理池
  3. 做成SpringBoot项目,定时爬取文章
zlib License (C) 2021 Haha This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution.

简介

Java爬取公众号文章 展开 收起
Java
Zlib
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/iszsq/sq-weixin-api-demo.git
git@gitee.com:iszsq/sq-weixin-api-demo.git
iszsq
sq-weixin-api-demo
Java爬取公众号文章
master

搜索帮助