mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-31 16:14:39 +08:00
LeetCode-Go ctl
配置方法
- 在
.gitignore
中,添加一行*.toml
- 在
LeetCode-Go
目录下,添加文本文件config.toml
。 - 把以下内容复制到
config.toml
中。 - 把
config.toml
中的test
分别修改为你的 leetcode用户名
和密码
。 - 去 leetcode 登录后,把网站 cookie 复制 (需要复制 csrftoken 和 LEETCODE_SESSION) 并替换
config.toml
中的Cookie
。
Username="test"
Password="test"
Cookie="csrftoken=XXXXXXXXX; LEETCODE_SESSION=YYYYYYYY;"
CSRFtoken="ZZZZZZZZ"