Coder Social home page Coder Social logo

funds_data's Introduction

funds_data

抓取网上的基金数据,将数据存储到本地的mysql或postgresql数据库中。

主要通过两个类:OurkuFundsInfoFetcher、FundsDataDB以及get_funds_data.py中的几个函数来实现。

get_funds_data.get_jrj_data(data_date)

http://www.jrj.com.cn 网站上抓取基金净值数据。

函数:get_funds_data.get_ourku_data(data_date)

http://www.ourku.com 网站上抓取基金净值数据。

函数:get_funds_data.data2db_simple(conn, funds)

将抓取的净值数据写入数据库,利用DBAPI的方式操作数据库,速度较快。

函数:get_funds_data.data2db(engine, funds)

将抓取的净值数据写入数据库,利用sqlalchemy操作数据库,插入数据速度较慢。

类:FundsDataDB

以ORM的方式访问数据库的接口类。

类:OurkuFundsInfoFetcher

http://www.ourku.com 网站抓取基金持仓、基金份额、基金类型等基础信息的类库。

test.py

抓取基础信息并入库存储的试验程序。

funds_data's People

Contributors

deerlux avatar

Watchers

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