|FarooqKZ df1f4688ea updated email address||1 year ago|
|.gitignore||2 years ago|
|CHANGELOG.md||2 years ago|
|CREDITS.md||2 years ago|
|ISC||2 years ago|
|README.md||2 years ago|
|pygq.py||1 year ago|
PyGQ uses GlobalQuran API to get Quran verses in multiple translations. It was a part of KoranFinder after I decided to re-write this part and now it can be used as an independent module.
This is a sample code with PyGQ which gets the first ayah of the first surah:
import pygq Q = pygq.PyGQ() print(Q.getAyah(1, 1, "en.sahih")["verse"])
You could use it as a command line tool, too:
pygq.py surah:ayah [language code]
language code is
en.sahih by default.
Note that getAyah() returns a dictionary containing the ayah text, number, surah number and id.