https://github.com/danmichaelo/mwcats
Simple tools to work with an article's category tree using mwclient
https://github.com/danmichaelo/mwcats
Last synced: 9 days ago
JSON representation
Simple tools to work with an article's category tree using mwclient
- Host: GitHub
- URL: https://github.com/danmichaelo/mwcats
- Owner: danmichaelo
- Created: 2012-12-04T12:22:53.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-12-04T13:38:24.000Z (over 13 years ago)
- Last Synced: 2026-03-02T02:30:38.449Z (4 months ago)
- Language: Python
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Example:
````
import mwclient, mwcats
site = mwclient.Site('en.wikipedia.org')
a = mwcats.Article(site, 'Cake')
a.get_path('Subjects taught in medical school')
````
returns
````
['Subjects taught in medical school',
u'Neurology',
u'Intelligence',
u'Skills',
u'Food and drink preparation',
u'Cooking',
u'Cooking techniques',
u'Foods by cooking technique',
u'Baked goods',
u'Cakes']
````