Skip to content

This is a python wraper for quran.com v3 api. API will respond with English content by default, but you can get content in other language for most api calls using language query parameters.

License

Notifications You must be signed in to change notification settings

dreygur/Quran.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quran.com API Build Status

This is a python wraper for quran.com v3 api

API will respond with English content by default, but you can get content in other language for most api calls using language query parameters. You can pass language id or language iso code as query string value. For list of available language see languages endpoint.

Using quran.com

Installing

python3 -m pip install git+https://github.com/dreygur/Quran.com.git

or

pip install git+https://github.com/dreygur/Quran.com.git

Importing Quran:

from quran import Quran
qur = Quran()

Methods

from quran import Quran
qur = Quran()

# All the methods returns a dictionary object

# Getting all Recitations
qur.get_recitations

# Getting all available Translations
qur.get_translations()

# Getting all avalailable Languages
qur.get_languages()

# Getting all Tafsirs available in this api
qur.get_tafsirs()

# Getting all Chapters names
qur.get_chapter(6, info=True, language='bn') # Keyworded arguments are optional

# Getting all the Verses from a chapter
qur.get_verses(6)

About

This is a python wraper for quran.com v3 api. API will respond with English content by default, but you can get content in other language for most api calls using language query parameters.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages