Git Product home page Git Product logo

douyin-node-scripts's Introduction

puppeteer 抖音 node 脚本

爬取自己账号的粉丝列表,分析关注情况

使用说明

自己的谷歌浏览器先登录好抖音号

cmd 启动调试浏览器

先关闭谷歌浏览器,打开调试版的谷歌浏览器

方式一:在命令行中执行

"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222

方式二:写在快捷方式的属性里的目标里面,写在目标里面 前面的双引号就不要了

C:\Program Files\Google\Chrome\Application\chrome.exe --remote-debugging-port=9222

image-20240309135313899

进入调试版的谷歌浏览器,查看 ws 地址 http://127.0.0.1:9222/json/version

image-20240309135409987

puppeteer 方法

// 等待对应的 dom 渲染完
page.waitForSelector('selector')
// 获取 dom 信息
page.evaluate(()=>{window 环境代码},params1:any)

page.$eval('selector', (el) => {})

douyin-node-scripts's People

Contributors

xxxsjan avatar

Stargazers

HOBO KING avatar Brian Anderson avatar  avatar  avatar  avatar

Watchers

 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.