I'm using PRAW in my Python script and am trying to figure out a way to track the number of API calls that it has made. Is there a way to do this?
Regards.
I'm using PRAW in my Python script and am trying to figure out a way to track the number of API calls that it has made. Is there a way to do this?
Regards.
Copyright © 2021 Jogjafile Inc.
You can enable logging in PRAW : https://praw.readthedocs.io/en/stable/getting_started/logging.html
From that page:
Simplest thing you could do is just
grep -cover the log looking forFetching. Or, of course, wire your application to more sophisticated monitoring tools.