{"id":15134649,"url":"https://github.com/suyashb95/wiktionaryparser","last_synced_at":"2025-05-15T22:03:44.875Z","repository":{"id":2590493,"uuid":"44818904","full_name":"suyashb95/WiktionaryParser","owner":"suyashb95","description":"A Python Wiktionary Parser","archived":false,"fork":false,"pushed_at":"2025-02-23T16:51:43.000Z","size":524,"stargazers_count":357,"open_issues_count":35,"forks_count":93,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-11T23:16:24.297Z","etag":null,"topics":["mediawiki","parser","python","wiktionary-parser"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suyashb95.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","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":"2015-10-23T14:41:30.000Z","updated_at":"2025-03-24T14:34:59.000Z","dependencies_parsed_at":"2025-04-03T22:41:57.401Z","dependency_job_id":"26818a35-76be-4839-9c92-dad161521b3f","html_url":"https://github.com/suyashb95/WiktionaryParser","commit_stats":{"total_commits":101,"total_committers":15,"mean_commits":6.733333333333333,"dds":0.5643564356435644,"last_synced_commit":"71f396ef6e915b3d1461a41e8a7aec35063d30bf"},"previous_names":["suyashb95/wiktionaryparser","suyash458/wiktionaryparser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suyashb95%2FWiktionaryParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suyashb95%2FWiktionaryParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suyashb95%2FWiktionaryParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suyashb95%2FWiktionaryParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suyashb95","download_url":"https://codeload.github.com/suyashb95/WiktionaryParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492884,"owners_count":21113163,"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":["mediawiki","parser","python","wiktionary-parser"],"created_at":"2024-09-26T05:23:26.413Z","updated_at":"2025-04-11T23:16:28.896Z","avatar_url":"https://github.com/suyashb95.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Wiktionary Parser\n\nA python project which downloads words from English Wiktionary ([en.wiktionary.org](https://en.wiktionary.org)) and parses articles' content in an easy to use JSON format. Right now, it parses etymologies, definitions, pronunciations, examples, audio links and related words.\n\nNote: This project will not be maintained since there are many free dictionary APIs now, please see - https://dictionaryapi.dev/ for example\n\n[![Downloads](http://pepy.tech/badge/wiktionaryparser)](http://pepy.tech/project/wiktionaryparser)\n\n#### JSON structure\n\n```json\n[{\n    \"pronunciations\": {\n        \"text\": [\"pronunciation text\"],\n        \"audio\": [\"pronunciation audio\"]\n    },\n    \"definitions\": [{\n        \"relatedWords\": [{\n            \"relationshipType\": \"word relationship type\",\n            \"words\": [\"list of related words\"]\n        }],\n        \"text\": [\"list of definitions\"],\n        \"partOfSpeech\": \"part of speech\",\n        \"examples\": [\"list of examples\"]\n    }],\n    \"etymology\": \"etymology text\",\n}]\n```\n\n#### Installation\n\n##### Using pip \n* run `pip install wiktionaryparser`\n\n##### From Source\n* Clone the repo or download the zip\n* `cd` to the folder\n* run `pip install -r \"requirements.txt\"`\n\n#### Usage\n\n - Import the WiktionaryParser class.\n - Initialize an object and use the `fetch(\"word\", \"language\")` method.\n - The default language is English, it can be changed using the `set_default_language method`.\n - Include/exclude parts of speech to be parsed using `include_part_of_speech(part_of_speech)` and `exclude_part_of_speech(part_of_speech)`\n - Include/exclude relations to be parsed using `include_relation(relation)` and `exclude_relation(relation)`\n\n#### Examples\n\n```python\n\u003e\u003e\u003e from wiktionaryparser import WiktionaryParser\n\u003e\u003e\u003e parser = WiktionaryParser()\n\u003e\u003e\u003e word = parser.fetch('test')\n\u003e\u003e\u003e another_word = parser.fetch('test', 'french')\n\u003e\u003e\u003e parser.set_default_language('french')\n\u003e\u003e\u003e parser.exclude_part_of_speech('noun')\n\u003e\u003e\u003e parser.include_relation('alternative forms')\n```\n\n#### Requirements\n\n - requests==2.20.0\n - beautifulsoup4==4.4.0\n\n#### Contributions\n\nIf you want to add features/improvement or report issues, feel free to send a pull request!\n\n#### License\n\nWiktionary Parser is licensed under [MIT](LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuyashb95%2Fwiktionaryparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuyashb95%2Fwiktionaryparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuyashb95%2Fwiktionaryparser/lists"}