GithubHelp home page GithubHelp logo

gaofei / onenightstand Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhupanlinch/onenightstand

0.0 1.0 0.0 280 KB

OneNightStand选股器,股票爬虫,每日获取所有个股的北向资金流入情况,以及日K的短线和中线趋势,作为短线选股的参考素材。

License: Apache License 2.0

Python 87.94% TSQL 12.06%

onenightstand's Introduction

OneNightStand

OneNightStand选股器,股票爬虫,每日获取所有个股的北向资金流入情况,以及日K的短线和中线趋势,作为短线选股的参考素材。

爬虫项目介绍

两市共3000多只股票,每次选股的时候都很痛苦。虽然,市面上有很多能够选股的软件,但是我用起来都不方便,不如自己把所有股票数据存到数据库,自己用起来更灵活。

1.从雪球上面爬所有股票代码和当日价格,换手率等指标

2.从东方财富上面获取个股的行业板块,概念板块等

3.从某网站上获取个股的北向资金加仓情况和个股的短期中期趋势

4.从雪球选股策略中爬当日选股策略

具体请参考codes.py

数据快照

数据快照

部署介绍

阿里云服务器python2.7, crontab定时运行

0 6 * * * python /py/OneNightStand/spider/codes.py &

0 17 * * * python /py/OneNightStand/spider/short.py &

快速选股sql

举个例子:我要筛选深圳的5G+华为概念股,并且按照北向资金加仓天数降序排序,执行如下sql便可。

select concat(name, ' 港资连续加仓', northward_funds_days, '天, 短线:', short, ', 中线: ', medium, ' ', northward_funds_detail) from code where create_date > '2019-08-28 00:00:00' and concept like '%5G%' and concept like '%深圳%' and concept like '%华为%' and northward_funds_days != 0 order by northward_funds_days desc

技术选型

1.环境

python2.7

2.主框架

python原生http请求框架和mysqldb框架

3.数据库

mysql

欢迎赞赏

赞赏

onenightstand's People

Contributors

zhupanlinch avatar yipingqiu avatar

Watchers

James Cloos 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.