예제 #1
0
    def get_rate_info(reddit):
        """
        Get user rate limit information. Quits the program if the user does not
        have any requests left in the current rate limit window.

        Parameters
        ----------
        reddit: Reddit object
            Reddit instance created by PRAW API credentials

        Returns
        -------
        praw_limits: praw.models
            PRAW rate limits
        """

        return models.Auth(_data = dict(), reddit = reddit).limits
예제 #2
0
파일: Validation.py 프로젝트: wabsto1/URS
 def get_rate_info(reddit):
     return models.Auth(_data = dict(), reddit = reddit).limits