有没有办法下载特定用户的所有答案的链接

发布于 2025-01-09 20:39:26 字数 280 浏览 4 评论 0原文

我想下载 Stackoverflow 上特定用户的所有答案的链接。我不熟悉网络和 JavaScript。但我习惯使用 C++ 和 Python。所以我想知道如何使用任何编程语言以编程方式下载特定用户的所有答案的链接。也就是说,任何语言都可以使用,如 javascript、python、C++ 等。

基本上,我想下载我以编程方式回答的所有答案的链接,并寻找一个工作示例。我用多种语言标记这个问题,因为使用特定语言不是必需的。我还没有尝试自己编码,因为我什至不知道如何/从哪里开始。

I want to download the links of all the answers by a specific user on Stackoverflow. I am not familiar with networking and Javascript. But i am used to working with C++ and Python. So i want to know how can i download the links to all the answers by a specific user on SO programatically using any programming language. That is, any language can be used like javascript, python, C++ etc.

Basically i want to download the links to all answers that i have answered on SO programatically and looking for a working example. I am tagging this question with multiple languages since using a particular language is not a requirement. I haven't tried coding it myself since i don't even know how/where to start.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

格子衫的從容 2025-01-16 20:39:26

此页面上有可用的文档:
https://api.stackexchange.com/docs/answers-on-users

用户 ID 可以是从用户的 stackoverflow 个人资料页面检索。
要以编程方式运行此程序,您可能需要获取访问令牌。
https://api.stackexchange.com/docs/authentication

例如,Rest API 调用如下所示:

https://api.stackexchange.com/2.3/users/USER_ID/answers?key=SOME_KEY((&site=stackoverflow&order=desc&sort=activity& ;过滤器=默认值

您还可以一次指定多个用户。

There is documentation available on this page:
https://api.stackexchange.com/docs/answers-on-users

The user ids can be retrieved from the user's stackoverflow profile page.
To run this programatically you will likely need to get an access token.
https://api.stackexchange.com/docs/authentication

For example the Rest API call would look something like this:

https://api.stackexchange.com/2.3/users/USER_ID/answers?key=SOME_KEY((&site=stackoverflow&order=desc&sort=activity&filter=default

Also you can specify multiple users at once.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文