a
    1ñÚi  ã                   @   sÜ   d dl Z d dlmZ dZeddœZe jdedd�Ze ¡ d	 d
 Zed Z	ed Z
ede	› de
› de
e	 › d�ƒ edƒZedƒZe ¡ rªee ¡  ¡ ƒZeded›�ƒ e ¡ rØd dlZee e¡ƒZeded›�ƒ dS )é    N)ÚPathZ b1de29523905bfc0470e71088d48437ezapi-football-v1.p.rapidapi.com)zx-rapidapi-keyzx-rapidapi-hostz0https://api-football-v1.p.rapidapi.com/v3/statusé
   )ÚheadersZtimeoutZresponseÚrequestsZcurrentZ	limit_dayzAPI-Football quota: ú/z used, z
 remainingz#E:\soccer\raw_api\done_fixtures.txtz!E:\soccer\raw_api\match_stats.csvzFixtures done: ú,zRows in match_stats.csv: )r   Úpathlibr   ZAPI_KEYr   ÚgetÚrZjsonÚdZcurZlimÚprintZ	done_fileZ	stats_csvÚexistsÚlenÚ	read_textÚsplitZdoneZpandasZpdZread_csvÚn© r   r   ú%E:\soccer\misc\archive\check_quota.pyÚ<module>   s"   
 