Coder Social home page Coder Social logo

anyproxy's Introduction

anyproxy 微信公众号文件收集

介绍

利用 anyproxy 截取手机请求的方式收集 微信公众号文章

环境

  • windows
  • php7+
  • nodejs
  • mysql5.5

安装

# 安装 anyproxy
npm i -g anyproxy


# 安装 api 依赖
composer install


# 导入数据收集表结构
> mysql -u用户名 -p密码
> use test;
> source data/spider.sql

运行

# 开启 anyproxy
anyproxy -i --rule server/office.js


# 绑定 php 接口访问地址
php -S localhost:80 api/

设置代理

以小米5(MUI 9.6)为例子

  • 设置手机网络代理
    1. 设置
    2. WLAN
    3. 连接的WLAN -> 最右边的操作图标进入
    4. 代理
    5. 手机
    6. 设置主机名(电脑的地址)
    7. 端口 8001
    8. 确认

用手机访问电脑的 8002 端口页面

如: 192.168.1.200:8002

下载 https 兼容 CA 证书(RootCA -> Download)

下载好后在手机安装 CA 证书

访问微信公众号和文章接口就会进行收集了

参考

微信公众号内容的批量采集与应用

许可

The project is open-sourced software licensed under the MIT license.

QQ: 505932384

anyproxy's People

Contributors

test-lin avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.