This project involves scraping and analyzing hadiths and their narrators (ravis) from Hadis Veritabanı.
-
Hadith Count: 284,363
-
Ravis Count: 13,595
id,arabic,turkish,musannif,book,topic,chain,page_index
6b6be2db-2159-49d1-b8b5-886f25724268, حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِى شَيْبَةَ حَدَّثَنَا عَبْدُ اللَّهِ بْنُ إِدْرِيسَ عَنْ إِسْمَاعِيلَ بْنِ أَبِى خَالِدٍ عَنْ قَيْسِ بْنِ أَبِى حَازِمٍ قَالَ دَخَلْنَا عَلَى خَبَّابٍ وَقَدِ اكْتَوَى سَبْعَ كَيَّاتٍ فِى بَطْنِهِ فَقَالَ لَوْمَا أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم نَهَانَا أَنْ نَدْعُوَ بِالْمَوْتِ لَدَعَوْتُ بِهِ ., Müslim, Sahîh-i Müslim, "KTB, ÖLÜM", 136; 778; 85; 688; 52, 6.4
ravi_id, narrator_name, tribe, nisbesi, degree, reliability
1,Süfyân b. Uyeyne b. Meymûn,Âmir b. Sa'sa',"el-Hilâlî, el-Kûfî, el-Mekkî",Etbau'-Tabiîn,"Sika, hafız, hüccet"
The goal of this project is to analyze hadiths by grouping them based on the ravis' tribe, degree of confidence, and other attributes.
-
Data Scraping: Python with BeautifulSoup
-
Database: PostgreSQL
-
Frontend: React
-
Backend: .NET V8.0
-
Data Visualization: Chart.js, Leaflet
-
Other Tools: Axios
-
.NET V8.0
-
PostgreSQL
-
Python
-
React
- Clone the repository:
git clone https://github.com/ahmethedev/hadith_analysis.git
cd hadith_analysis
- Install frontend dependencies:
cd ../frontend
npm install
- Backend Startup :
cd ../backend_dotnet
You need to create appsetting.cs inorder to create connection string for db.
- Set up the database:
- Create a PostgreSQL database and update the connection details in your backend configuration.
- Run the backend server:
run program.cs
- Run the frontend server:
cd ../frontend
npm start
-
The data scraping scripts are written in Python using BeautifulSoup. Ensure you have Python installed, then run the scraping scripts to gather data from the source website.
-
You can access to the scraper and the zipped data in /scraping_and_data
- Data analysis and visualization are done using Chart.js integrated with the React frontend. The backend handles the data fetching and serves the API endpoints.
Feel free to submit issues, fork the repository, and send pull requests. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License. See the LICENSE file for details.