Code Monkey home page Code Monkey logo

cfmmc's Introduction

cfmmc

  1. **期货市场监控中心的浏览器模拟操作。
  2. 使用了seleniumChromedrive来实现。
  3. 已经实现的功能:
    1. 下载每日结算单,默认保存为csv文件。根据已有的数据,可以接着下载。

准备

  • 安装selenium-python
  • 安装chromedirve
  • 安装cfmmc
pip install cfmmc # 从 pypi 安装
# OR
pip install -e . # 从本地项目目录安装

使用

期货结算中心的登录参见这里。 账号密码详询自己的客户经理。账号密码不同于期货交易账户。

下载每日结算数据

import cfmmc
# 设置账号密码
dic = {
    'userID':'查询账号',
    'password': '查询密码',
    'saveto': '保存下载数据的文件夹'
}
# 下载数据
cfmmc.downloadDailySettlement(**dic)
> 请手动输入验证码:

弹出来的chrome浏览器,就是正在被代码操纵的浏览器。 输入浏览器中的验证码,即可登录。

cfmmc's People

Contributors

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