{"id":15559799,"url":"https://github.com/richardarpanet/wiki-api","last_synced_at":"2025-04-09T16:52:17.020Z","repository":{"id":138869051,"uuid":"127970707","full_name":"richardARPANET/wiki-api","owner":"richardARPANET","description":"📚 A basic python library enabling access to Wikipedia.org's search results and articles.","archived":false,"fork":false,"pushed_at":"2021-06-05T12:25:23.000Z","size":77,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T18:54:24.309Z","etag":null,"topics":["api-client","api-wrapper","client","python","python-library","python2","python3","wiki","wikipedia","wikipedia-api"],"latest_commit_sha":null,"homepage":"https://github.com/richardARPANET/wiki-api","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/richardARPANET.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.rst","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-03T21:27:01.000Z","updated_at":"2021-06-05T12:25:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"e69a0843-8a98-44fe-a8cd-b8e66032b6f7","html_url":"https://github.com/richardARPANET/wiki-api","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardARPANET%2Fwiki-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardARPANET%2Fwiki-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardARPANET%2Fwiki-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardARPANET%2Fwiki-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richardARPANET","download_url":"https://codeload.github.com/richardARPANET/wiki-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248073296,"owners_count":21043401,"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":["api-client","api-wrapper","client","python","python-library","python2","python3","wiki","wikipedia","wikipedia-api"],"created_at":"2024-10-02T15:57:46.095Z","updated_at":"2025-04-09T16:52:16.995Z","avatar_url":"https://github.com/richardARPANET.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wiki-api\r\n[![Build Status](https://travis-ci.org/richardasaurus/wiki-api.png?branch=master)](https://travis-ci.org/richardasaurus/wiki-api)\r\n\r\nA basic python library enabling access to Wikipedia.org's search results and articles.\r\n\r\n## How To Use\r\n\r\n### Installation\r\n\r\n    pip install wikiapi\r\n\r\n### Create an instance of wiki-api\r\n```python\r\nfrom wikiapi import WikiApi\r\nwiki = WikiApi()\r\nwiki = WikiApi({ 'locale' : 'es'}) # to specify your locale, 'en' is default\r\n```\r\n### Search for something on wikipedia\r\n```python\r\nresults = wiki.find('Barack Obama') =\u003e ['Barack_Obama', 'Barack_Obama_presidential_campaign,_2008', ...]\r\n```\r\n### Get information about a wiki article\r\n```python\r\narticle = wiki.get_article(results[0])\r\n\r\narticle.heading =\u003e 'Barack Obama'\r\narticle.image =\u003e 'http://upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Official_portrait_of_Barack_Obama.jpg/220px-Official_portrait_of_Barack_Obama.jpg'\r\narticle.summary =\u003e 'Barack Hussein Obama II (i/bəˈrɑːk huːˈseɪn oʊˈbɑːmə/; born August 4, 1961) is the 44th and current President of th...'\r\narticle.references =\u003e ['Obama: No green light for Israel to attack Iran. Cnn.com. 2009-07-07. http://www.cnn.com/2009/POLITICS/07/07/obama.israel.iran/. Retrieved January 4, 2013.', ..., .., ...]\r\narticle.content =\u003e 'Full article dump...'\r\narticle.url =\u003e 'http://en.wikipedia.org/wiki/Barack_Obama'\r\n```\r\n\r\n## Requirements\r\n\r\n    1. Python 3\r\n    2. See requirements.txt\r\n\r\n## Running the tests\r\n\r\n```\r\npip install tox\r\ntox\r\n```\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardarpanet%2Fwiki-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichardarpanet%2Fwiki-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardarpanet%2Fwiki-api/lists"}