python - 如何列出从特定 IP 地址对维基百科进行的所有匿名(因此 IP 公开)编辑?

标签 python ip-address wikipedia wikipedia-api pywikibot

假设我有一个 IP 地址,例如 IP address of the Hungarian Parliament :193.224.28.151

如何获取使用此 IP 地址进行的所有 Wikipeida 编辑的列表?

关于a Tom Scott webpage ,我读到:

Here's a fact: Wikipedia stores the IP addresses of anonymous users.

Here's another fact: all of the web traffic from the Houses of Parliament is sent through one of two proxy servers — which means that every anonymous edit to Wikipedia from within Parliament is attributed to one of just two IP addresses.

I'm sure you can see where this is going.

我还没有找到该项目的存储库。如果可以在浏览器中或者使用 Python 来完成,那就太好了。

最佳答案

您可以使用“特殊:贡献”页面查看来自维基百科帐户、IP 地址或 IP 范围的贡献。例如,https://en.wikipedia.org/wiki/Special:Contributions/193.224.28.151列出了从 193.224.28.151 进行的编辑。您还可以查看 IP 范围内的编辑,例如 https://en.wikipedia.org/wiki/Special:Contributions/193.224.28.0/22 .

如果您希望通过维基百科的 API 查看维基百科帐户和个人 IP 地址的贡献,可以在 https://www.mediawiki.org/wiki/API:Usercontribs 获取文档和示例。

关于python - 如何列出从特定 IP 地址对维基百科进行的所有匿名(因此 IP 公开)编辑?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66796872/

相关文章:

Python - 将包含 IP 地址和不同数据的文本文件的列表转换为 CSV

python - Python 模块中的全局变量自发重置

linux - 红帽linux广播IP地址

c++ - 如何将标准 IP 地址格式字符串转换为十六进制和长?

python - 如何通过python删除大括号包围的 block

facebook - Facebook 使用什么 API 来显示完整的维基百科文章?

Python boto3 和 SQS 不接收消息

python - Anaconda Spyder Qt 库启动时出错

python - 带有 Flask 的 Google Cloud Endpoints API

python - 在python中获取维基百科文章的类别