Add forum_url to API, change to forum.luanti.org

This commit is contained in:
rubenwardy
2024-11-03 14:20:14 +00:00
parent dd2e73b40f
commit a54104aa82
20 changed files with 31 additions and 27 deletions

View File

@@ -124,7 +124,7 @@ def parse_forum_list_page(id, page, out, extra=None):
start = page*num_per_page+1
print(" - Fetching page {} (topics {}-{})".format(page, start, start+num_per_page), file=sys.stderr)
url = "https://forum.minetest.net/viewforum.php?f=" + str(id) + "&start=" + str(start)
url = "https://forum.luanti.org/viewforum.php?f=" + str(id) + "&start=" + str(start)
r = urllib.request.urlopen(url).read().decode("utf-8")
soup = BeautifulSoup(r, "html.parser")