بوت مكتوب بلغة Python لمنصة X (تويتر سابقًا)، يقوم بنشر آية عشوائية من القرآن الكريم تلقائيًا كل ساعتين.
- اختيار آية عشوائية من ملف JSON محلي.
- تنسيق المنشور ليشمل نص الآية، واسم السورة، ورقم الآية.
- النشر التلقائي على منصة X باستخدام مكتبة Tweepy (واجهة Twitter API v2).
- تحميل بيانات API بشكل آمن من ملف
.env.
- Python 3.7 أو أحدث
- حساب مطور على X (Twitter Developer Account) مع صلاحيات القراءة والكتابة (Read/Write).
- المكتبات التالية:
tweepypython-dotenv
قم باستنساخ المستودع (Repository) أو تنزيل ملفات المشروع إلى جهازك أو خادمك.
pip install tweepy python-dotenvA Python-based bot for X (formerly Twitter) that publishes a random verse from the Holy Quran every two hours.
- Selects a random Ayah (verse) from a local JSON file.
- Formats the post to include the verse text, Surah name, and Ayah number.
- Automatically publishes to X using the Tweepy library (Twitter API v2).
- Securely loads API credentials from a
.envfile.
- Python 3.7+
- X (Twitter) Developer Account with Read/Write access.
- Required Python libraries:
tweepypython-dotenv
Clone the repository or download the project files to your device or server.
pip install tweepy python-dotenv