Skip to main content
# 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.downloadDailySettlement(**dic)
> 请手动输入验证码:
```
弹出来的`chrome`浏览器,就是正在被代码操纵的浏览器。
输入浏览器中的验证码,即可登录。



Metadata

Release files for cfmmc 2017.12.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cfmmc 2017.12.5
File Size Uploaded Provenance Actions
cfmmc-2017.12.5.tar.gz 4.9 kB Without provenance Details for cfmmc-2017.12.5.tar.gz

Release files / cfmmc-2017.12.5.tar.gz

Download URL cfmmc-2017.12.5.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e034e956073993870a08bdd9f44055db46a368b98b7ed4e0e37055e790283dcb
BLAKE2b-256 checksum
How to use checksums
80e4cb093f7654657af11f99f1cf8755b7d7ba7f9506104e9b1ab2b47d9cdd6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for cfmmc 2017.12.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page