أداة Python Web Scraping تقوم باستخراج بيانات مباريات كرة القدم من YallaKora Match Center لتاريخ محدد يختاره المستخدم. يقوم السكربت بجمع تفاصيل المباريات من بطولات متعددة، بما في ذلك الفرق، ووقت المباراة، والنتيجة النهائية، ثم يصدر البيانات في ملف CSV منظم.
يقوم السكربت بطلب إدخال التاريخ من المستخدم بصيغة MM/DD/YYYY ويقوم بالتحقق من صحته باستخدام مكتبة datetime في Python. هذا يمنع إدخال بيانات خاطئة ويضمن أن رابط الطلب (URL) صحيح دائمًا.
يرسل السكربت طلب GET باستخدام مكتبة requests بالتاريخ المحدد، ويتم تحليل محتوى HTML باستخدام مكتبة BeautifulSoup مع محلل lxml.
Python web scraping tool that extracts football match data from YallaKora Match Center for a selected date.
The script collects match details from multiple championships, including teams, match time, and final score, then exports the data into a clean CSV file.
The script asks the user to enter a date in the format MM/DD/YYYY and validates it using Python’s datetime module.
This prevents invalid inputs and ensures the request URL is always correct.
The script sends a GET request using requests with the selected date.
HTML is parsed using BeautifulSoup (lxml parser).