获取蛋卷基金的投资记录然后记录到google表格 。
- github地址:https://github.com/burnash/gspread
- 文档地址:https://docs.gspread.org/en/latest/
- 开通google表格的访问权限:https://docs.gspread.org/en/latest/oauth2.html
- 开通google表格的访问权限 并且把需要修改的google sheet表格共享给此邮箱
- 安装python3.8环境,并安装本项目的依赖
pip install -r requirements.txt
- 修改cookie.example.txt文件为cookie.txt
- 在网页上登陆蛋卷基金
- 登陆之后复制蛋卷基金 的cookie信息( 如何查看cookie )并粘贴到cookie.txt文件中
- 默认写入的google表格的名称为"投资记录",sheet页为"基金投资详情",可以在util.google_sheet_util.py文件中修改
- 运行main.py脚本
python3.8 main.py
;(注意需连外网)
A | B | C | D | E | F | G | H |
---|---|---|---|---|---|---|---|
日期 | 操作(买/卖) | 交易品种代码 | 交易品种 | 交易金额(元) | 成交单价(元) | 交易份额 | 手续费 |