我正在本地建立一个基于 MediaWiki 的网站。它在 localhost 上与 Apache 一起运行。我想设置一些脚本来使用我的 wiki 事件流。
MediaTech 的文档显示了这样的示例:
import json
from sseclient import SSEClient as EventSource
url = 'https://stream.wikimedia.org/v2/stream/recentchange'
for event in EventSource(url):
if event.event == 'message':
try:
change = json.loads(event.data)
except ValueError:
pass
else:
print('{user} edited {title}'.format(**change))
但我找不到任何关于新安装的默认流端点在哪里的信息。我没有设置任何子域或任何东西,我发现的所有示例都使用 WMF 流。
我需要连接到哪个端点才能使用我的 wiki 事件流?
谢谢!