示例#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