Comments (12)
from hadith-api.
Walaikum salam, you need to implement the logic in python
first you need to generate a random number
then use that random number in this url format:
https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/editions/eng-abudawud/{randomnumber}.json
and then to get data from url, refer this example
from hadith-api.
Ah ok, Jzk Khair.
Does this API include Bukhari, Muslim, Sunan books etc? Or is it just riyadusalihin like sunnah.com?
from hadith-api.
Yes it includes those books.
Here is a demo website I created using this api:
Demo
Here are the list of available books :
https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/editions.json
from hadith-api.
Great news... can I just ask one more thing, this endpoint you just gave which book will it yield the hadith from? And is there any range of numbers from whioch we should generate the number#
Appreciate the help, May Allah SWT bless you as well.
from hadith-api.
For range, refer last_hadithnumber
at this link:
https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/info.json
For sahih muslim english edition, use this:
https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/editions/eng-muslim/{randomnumber}.json
sahih muslim arabic edition
https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/editions/ara-muslim/{randomnumber}.json
For abu dawud english edition,
https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/editions/eng-abudawud/{randomnumber}.json
Refer https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/editions.json for all editions available
from hadith-api.
from hadith-api.
can you give me the link which is showing error?
from hadith-api.
from hadith-api.
You have to replace the {randomnumber} with the random number generated in python.
For example this link:
https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/editions/eng-muslim/{randomnumber}.json
may become
https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/editions/eng-muslim/77.json
I assume you are new to development, it's better if you take some python's beginners course, that should definitely help you in developing your application
from hadith-api.
from hadith-api.
oh ok! May Allah bless you for making hadith app 🙂
from hadith-api.
Related Issues (20)
- sunan Abu dawood book 1 hadith number 64 65 HOT 3
- Add hadith gradings by Imam Tirmidhi.
- read files HOT 6
- Translation error in Zubair Ali Zai grading. HOT 4
- Translation and grading discrepancy in Sunan Nasai. HOT 2
- Incomplete hadith text in Google Sheet cell.
- Possible issue in gradings by Bashar Awaad Marouf in Jami At Tirmidhi HOT 2
- Alternate translations of hadith. HOT 2
- Russian translation HOT 7
- Get random hadith of a language doesnt exist here is a function in node please add it or a equivalent
- eng-bukhari has problem
- map secondary book hadiths to primary book hadiths for grades
- Hadith empty HOT 1
- make fallback api HOT 2
- Possible documentation website for various APIs. HOT 1
- Sahih Muslim HOT 4
- Curious HOT 1
- add jami kamil
- musnad ahmad with grades
- Add Muslim with arabic numberings in api
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hadith-api.