fuzzyworld

quantum-inspiration / commit

Log the names and urls of random wiki pages.

15da5b5bbbcdd1aa2048e07761ad8d05220538a5 · Pavel Safronov · 2023-09-06 00:30:46 -0700 · parents a60fde4f2cda

Log the names and urls of random wiki pages.
 wiki.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wiki.go b/wiki.go
index 792f16d..3ae04da 100644
--- a/wiki.go
+++ b/wiki.go
@@ -63,6 +63,7 @@ func getRandomWikipediaPages(count int) (nameToUrlMap map[string]string, err err
 		title := wikiResponse.Query.Pages[pageID].Title
 		url := fmt.Sprintf("http://en.m.wikipedia.org/?curid=%s", pageID)
 		nameToUrlMap[title] = url
+		fmt.Printf("title: %s, url: %s\n", title, url)
 	}
 
 	return nameToUrlMap, nil