Replies: 1 comment
-
@cnderrick Thanks. PR for it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
方案一
参考资料来源(拉到底最后一行):https://sourceforge.net/p/forge/documentation/Using%20the%20Release%20API/
访问以下接口获取最新版本信息:https://sourceforge.net/projects/cudatext/best_release.json
直接取mac字段里的数据使用即可。版本号获取通过截取filename里的字符串获取。
注意:访问无法获取以上结果,请用浏览器模拟访问测试。如果可以拿到接口返回的数据。在脚本模拟发起访问的时候指定下user-agent字段,模拟本地的浏览器。 @ivaquero
方案二
参考资料:https://stackoverflow.com/questions/30885561/programmatically-querying-downloadable-files-from-sourceforge
访问接口:https://sourceforge.net/projects/cudatext/rss
(返回内容略)
按照xml格式解析返回结果,然后取需要的macOS部分数据。
@ivaquero
Beta Was this translation helpful? Give feedback.
All reactions