GithubHelp home page GithubHelp logo

jdspider's Introduction

JdSpider

京东评论&问答数据爬虫:根据商品Id实现对京东平台上的评论内容(目前仅支持爬取单个商品前100页的评论内容)及商品问答模块的问题数据

项目结构

│  com_spider.py               # 京东评论爬取模块
│  config.py                   # 配置文件
│  main.py                     # 主程序入口(批量爬取评论和问答内容)
│  qa_spider.py                # 问答爬虫模块
│  README.md                   # 项目说明文档
│  requirements.txt            # 依赖库配置
│  search_spider.py            # 搜索爬虫模块(根据关键词批量爬取商品Id)
│
├─drivers                      # 驱动文件目录
│      chromedriver.exe        # Chrome浏览器驱动
│      geckodriver.exe         # Firefox浏览器驱动
│
├─ids_collection               # 商品ID存储目录
├─output                       # 爬取评论和问答内容存储目录

快速开始

  1. 准备环境

    • conda create -n jd_spider python=3.8.18

    • conda activate jd_spider

    • pip install -r requirements.txt

  2. 配置

  3. 运行

待做功能

  • 根据关键词从京东主页批量抓取商品ID;
  • 批量抓取商品评论&问答数据逻辑;
  • main.py模块实现断点续爬;
  • search_spider.py模块中登录时的滑块验证实现自动化。

jdspider's People

Contributors

duguce avatar hobeedzc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

hobeedzc

jdspider's Issues

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.