Wikipedia Web Scraping with Go

A lightweight wikipedia scraper built in Go that produces a comprehensive JSON structure that captures every text element and its relationships:
{
"Title": "Example Article",
"Sections": [
{
"Title": "Introduction",
"Paragraphs": [
{
"Text": "This is the first paragraph of the introduction.",
"Links": [
{
"Text": "Example Link",
"URL": "https://example.com"
}
]
},
{
"Text": "This is the second paragraph of the introduction.",
"Links": []
}
]
},
{
"Title": "Main Section",
"Paragraphs": [
{
"Text": "This is the first paragraph of the main section.",
"Links": []
}
]
}
],
"References": [
{
"Id": "cite_note-6",
"Text": "This is the first reference.",
"Links": [
{
"Text": "Reference Link",
"URL": "https://reference.com"
}
]
}
]
}