Giter Club home page Giter Club logo

xiaohongshu_app_crawler's Introduction

小红书app爬虫实现

一、整体思路图

整体思路图

手机控制端

通过airTestIDE连接手机,生成poco树后就可识别出小红书上的搜索框以及按钮节点

参考swiper.py(具体节点需要通过airTestIDE识别,每台设备都不一样,此脚本仅供参考,不能实际运行)

运行python swiper.py即可实现模拟操作手机

airtest连接安卓手机教程

通过执行swiper.py,实现自动搜索、下滑获取下一页等操作

http代理端

使用mitmproxy开启http代理,同时监听http_handle.py,手机接入代理后产生的http请求都会经过会http_handle.py进行处理

mitmproxy启动命令参考 mitmweb -s http_handle.py -p 8085

mitmproxy官方文档

xiaohongshu_app_crawler's People

Contributors

jiawei666 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.