{"id":18578977,"url":"https://github.com/patrickmn/go-wikimedia","last_synced_at":"2025-04-10T10:31:23.969Z","repository":{"id":3426245,"uuid":"4477846","full_name":"patrickmn/go-wikimedia","owner":"patrickmn","description":"A Go interface to the Wikimedia (Wikipedia, Wiktionary, etc.) API","archived":false,"fork":false,"pushed_at":"2018-10-28T01:35:57.000Z","size":52,"stargazers_count":9,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T04:32:08.989Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://patrickmn.com/projects/go-wikimedia/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrickmn.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-29T05:07:32.000Z","updated_at":"2025-01-22T20:04:26.000Z","dependencies_parsed_at":"2022-09-10T22:52:31.012Z","dependency_job_id":null,"html_url":"https://github.com/patrickmn/go-wikimedia","commit_stats":null,"previous_names":["pmylund/go-wikimedia"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickmn%2Fgo-wikimedia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickmn%2Fgo-wikimedia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickmn%2Fgo-wikimedia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickmn%2Fgo-wikimedia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickmn","download_url":"https://codeload.github.com/patrickmn/go-wikimedia/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199136,"owners_count":21063641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T23:38:28.129Z","updated_at":"2025-04-10T10:31:23.680Z","avatar_url":"https://github.com/patrickmn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-wikimedia is an interface to the Wikimedia (Wikipedia, Wiktionary, etc.) API.\n\nIt is a work in progress currently used to build applications that query\nWikipedia and Wiktionary in different languages.\n\n== Installation\n\ngo get github.com/pmylund/go-wikimedia\n\n== Documentation\n\ngo doc github.com/pmylund/go-wikimedia\nor http://go.pkgdoc.org/github.com/pmylund/go-wikimedia\n\n== Usage\n\nimport (\n\t\"fmt\"\n\t\"github.com/pmylund/go-wikimedia\"\n\t\"net/url\"\n)\n\nw, err := wikimedia.New(\"http://en.wikipedia.org/w/api.php\")\nif err != nil {\n\t...\n}\nf := url.Values{\n\t\"action\": {\"query\"},\n\t\"prop\":   {\"extracts\"},\n\t\"titles\": {\"Osmosis|Procrastination\"},\n}\nres, err := w.Query(f)\nif err != nil {\n\treturn nil, err\n}\nfor _, v := range res.Query.Pages {\n\tfmt.Println(v.Title, \"-\", v.Extract)\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickmn%2Fgo-wikimedia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickmn%2Fgo-wikimedia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickmn%2Fgo-wikimedia/lists"}