ludoux / ngapost2md

艾泽拉斯国家地理论坛/NGA玩家社区/NGA单帖爬虫/牛国安一键存贴,不怕冲水
MIT License
97 stars 10 forks source link

feat:合并配置文件 #52

Closed oarinv closed 1 year ago

oarinv commented 1 year ago

1.将cookie.json文件的所需配置移入config.ini,合并为一个配置。 2.把 BASE_URL 和 UA 放入代码,无需手动配置。 3.将config.ini文件引用更改到assets/config.ini。

ludoux commented 1 year ago

谢谢你~

UA和base_url放在配置文件里有为了方便修改的必要,这个可以不做更改。我记得网事杂谈有的时候会限制非APP UA的访问

把cookie合进config.ini是好的,我白天测试一下可不可行

config.ini 文件路径问题,我计划是之后github actions打包的时候,直接打包到和可执行程序一个层次下,就相当于父文件夹下有config.ini、可执行文件、导出的帖子文件夹。所以这个emmm其实也可以不做更改的


From: zsq @.> Sent: Tuesday, May 16, 2023 10:23:04 PM To: ludoux/ngapost2md @.> Cc: Subscribed @.***> Subject: [ludoux/ngapost2md] 把配置文件都放于config.ini (PR #52)


You can view, comment on, or merge this pull request online at:

https://github.com/ludoux/ngapost2md/pull/52

Commit Summary

File Changes

(4 fileshttps://github.com/ludoux/ngapost2md/pull/52/files)

Patch Links:

― Reply to this email directly, view it on GitHubhttps://github.com/ludoux/ngapost2md/pull/52, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADGWKTFL2KOKBO62PQKDPR3XGOEURANCNFSM6AAAAAAYDXQR5I. You are receiving this because you are subscribed to this thread.Message ID: @.***>