{ "info": { "author": "flow.gunso", "author_email": "flow.gunso@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Wiki", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing", "Topic :: Utilities" ], "description": "# pyktionary\n\n[](https://gitlab.com/flow.gunso/pyktionary/commits/0.7.1)\n[](https://pypi.org/project/pyktionary/)\n\n\nSimple Wiktionary scraper. Get information from words in Wiktionary.\n\n__The module is at an early stage, be advised that:__\n- **Only [french Wiktionary](https://fr.wiktionary.org/) is supported.**\n- **The following sections are not scraped:**\n - **_Prononciation_**\n - **_Anagrammes_**\n - **_Voir aussi_**\n - **_R\u00e9f\u00e9rences_**\n - **_Forme de verbe_**\n- __Any section not matching _\u00c9tymologie_ is scraped as _D\u00e9finition_.__\n\n# What pyktionary is\n\nA scraper that gets data on words from Wiktionary.\nSections of a word are scraped as raw HTML into a dict, see [Example](#Example).\n\n# What pyktionary is not\n\nAn interface to make changes to Wiktionary. You can NOT send data to Wiktionary with this module.\n\n# What's next ?\n\nThis module is at a very early stage. It only cover my specific use case, which is scraping a word's etymology and definitions from french Wiktionary.\n\nThe module will improve over time. Priorities are for the following features and fixes:\n- Scrap all sections from a word.\n- Support wiktionaries from other languages.\n\nYou can read the [TODO](TODO.md) for more stuff to do.\n\n# Usage\n\n```python\nfrom pyktionary.models import Wiktionary\n\n# ...\n\nwik = Wiktionary()\nword = wik.word(\"oui\")\n\n# ...\n```\n\n# Example\n\n###### With word [oui](https://fr.wiktionary.org/wiki/oui):\n\nThe following code:\n```python\n from pyktionary.models import Wiktionary\n wik = Wiktionary()\n word = wik.word(\"oui\")\n pprint.pprint(word, compact=True)\n```\noutput:\n```bash\n{\n\t'\u00c9tymologie': '