GithubHelp home page GithubHelp logo

sunnyruin / eastmoney_crawler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hogking/eastmoney_crawler

0.0 0.0 0.0 34 KB

爬取东方财富股吧沪深股票文章、评论及发言用户信息

Python 91.45% Jupyter Notebook 8.55%

eastmoney_crawler's Introduction

eastmoney_crawler

使用多进程、多线程爬取东方财富股吧沪深股票文章、评论及发言用户信息。

说明

请求:requests

解析:lxml

数据库:mongodb

消息队列:redis

全站爬取时需要使用到selenium获取股吧页面数目,若程序放在linux服务器上运行,则需要在crawl.py中导入pyvirtualdisplay,并且在使用selenium的get_page_num()中加上

display = Display(visible=0, size=(800, 800))  

display.start() 

mongodb与redis默认连接为localhost

任务

任务定义在redis_queue.py中,默认爬取上海+深圳股票的股吧帖子。

运行模式

程序可进行全部爬取或者增量更新

若要使用增量更新,将main.py中method = 'update'即可。

eastmoney_crawler's People

Contributors

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