Metadata-Version: 1.1
Name: cfmmc
Version: 2017.12.3
Summary: 中国期货监控中心模拟浏览器操作
Home-page: https://github.com/lamter/cfmmc
Author: lamter
Author-email: lamter.fu@gmail.com
License: UNKNOWN
Description: # cfmmc
        1. 中国期货市场监控中心的浏览器模拟操作。
        2. 使用了`selenium`和`Chromedrive`来实现。
        3. 已经实现的功能：
            1. 下载每日结算单，默认保存为`csv`文件。根据已有的数据，可以接着下载。
        
        ## 准备
         - 安装`selenium-python`
         - 安装`chromedirve`
         - 安装`cfmmc`
        ```
        pip install cfmmc # 从 pypi 安装
        # OR
        pip install -e . # 从本地项目目录安装
        ```
        
        ## 使用
        期货结算中心的登录参见[这里](https://investorservice.cfmmc.com)。
        账号密码详询自己的客户经理。账号密码不同于期货交易账户。
        
        ### 下载每日结算数据
        ```
        import cfmmc
        dic = {
            'userID':'查询账号',
            'password': '查询密码',
            'saveto': '保存下载数据的文件夹'
        }
        cfmmc.account(**dic) # 设置账号密码
        > 请手动输入验证码:
        ```
        弹出来的`chrome`浏览器，就是正在被代码操纵的浏览器。
        输入浏览器中的验证码，即可登录。
        
        
        
        
Keywords: cfmmc
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: License :: OSI Approved :: MIT License
