直接获取维基百科原始标签?

Get Wikipedia raw tags directly?

是否有 URL 直接获取维基百科条目的原始标签,而不是 HTML?也就是说,我只想得到这样的东西,

{{about|the cat species that is commonly kept as a pet|the cat family|Felidae|other uses|Cat (disambiguation)|and|Cats (disambiguation)}}....

不是,

<!DOCTYPE html>
<html class="client-nojs" lang="en" dir="ltr">
<head>
<meta charset="UTF-8"/>
<title>Cat - Wikipedia</title> ....

我已经找到 Google 但找不到答案。我能找到的最接近的 URL 是类似 https://en.wikipedia.org/w/index.php?title=Cat&action=edit 的东西,我可以从中提取标签,但它仍然包含不必要的 HTML 东西。

你所说的"tags"就是Wikitext syntax. It can be obtained for any page by using the "raw" action, like https://en.wikipedia.org/w/index.php?title=Cat&action=raw。请注意,您将获得与您使用的 action=edit 完全相同的内容,没有其他版本没有 "unnecessary HTML stuff".