The code in this repo is no longer being maintained. For newer stuff, see Mercury, which uses v2.3 of the Oxford Dictionaries API.
The version of the API used in this code (Oxford Dictionaries API v1) reached sunset on 30 June 2019. Therefore, this code hasn't worked after the API v1 sunset.
Twitter bots for:
- Urdu-to-English word translations. See
words_u2e.py
. - Urdu-Hindi homophones. See
homophones.py
. - Twitter stories. See
stories.py
.
Live at https://twitter.com/_alfaaz_
Explanations on dev.to:
- How bots tweet Urdu word meanings in English
- How bots write stories (ToBeDone)
This README file contains the following sections:
- For the translations, Oxford Dictionaries API
- For tweeting, Twitter API
- For images:
- For tweets: tweepy
- Other libraries:
requests
,json
,time
,urllib
,csv
,random
See the Issues page.
- The code for Nastalikh to Devanagari phonetic transliteration is based on Shan Ali Khan's script posted on Medium.
- Word meanings are, in the first instance, from Oxford Dictionaries. If no meaning is found, the fallback dictionaries are the Urdu dictionaries hosted at the Digital South Asia Library by the University of Chicago.
- For the stories, songs are from Mirza Ghalib's verses (out of copyright) and from Hindi films (used here under Fair Use Policy).
GPL3.0