Discord-Scraper
Discord-Scraper copied to clipboard
configuration error
I keep getting this token error, i dont know whate fuck im doing wrong.
[ERROR]: Authorization token file can not be found at the following location: C:\Program Files (x86)\pycharm projects\Discord scrapper\Discord-Scraper-experimental{mytoken.token}
Traceback (most recent call last):
File "C:\Program Files (x86)\pycharm projects\Discord scrapper\Discord-Scraper-experimental\discord.py", line 195, in
Hope someone can help me
So there's two problems there:
-
You put down the token file name in the config.json file as
"{mytoken.token}"
instead of"mytoken.token"
or the script somehow placed that in the curly format brackets and forgot to add the trailing path separator between the token and theDiscord-Scraper-experimental
folder name. -
I forgot to put a
1
in the exit function call on line 87 which I'm about to rectify as soon as I send this response.
Wait what?
I didn't want to close the issue.
GitHub thinks that just because titled the recent commit "Fix #issue" then that must mean that all of the things were fixed in that issue... I probably should keep that in mind for the future.
Ok thank you, i got it working now but it still shows me HTTP 429 warnings
Yes, HTTP 429 is the rate limiter and I figured that the sleep time was adequate enough to prevent hitting the rate limiter but I might have to start looking into what Discord is doing regarding these recent API updates in regards to rate limiting.
There is something in the official API documents that makes me a bit nervous about how frequent this script could potentially hit the rate limiter:
Of course the API also makes mention that their rate limiter is applied on a per-route basis, or that it can be different based on which API function is being called. And there is also a per-account rate limit setting that can be different between users based on some undocumented calculations.
There's also the case of per-route rate limits that may be shared across multiple, similar-use routes such as the one that could be used when gathering messages from a channel and from the undocumented search API endpoints (as used in this script).
So the upcoming release for this script will have to take into account the ever-changing rate limiting settings and to tailor the runtime to each account and route it appears to prevent further HTTP 429 responses.
- You put down the token file name in the config.json file as
"{mytoken.token}"
instead of"mytoken.token"
or the script
In the example config, that is how it is formatted, you have a more understandable example config in the wiki than in the repo
Yes, I spent a good amount of time working on the wiki for this repository in hopes that it might come in real handy.