Discord-Scraper
Discord-Scraper copied to clipboard
404 error when scraping a guild and channel
"guilds": {
"guild/server 1 id": [
"328209921944584203/733028471516823692",
"guild/server 1 channel 2 id",
"guild/server 1 channel 3 id"
],
"guild/server 2 id": [
"guild/server 2 channel 1 id",
"guild/server 2 channel 2 id",
"guild/server 2 channel 3 id"
Im a little unsure about the format you expect the guild di and server ID, i think whats above is correct right? but i get a 404 error and the python script says "[WARN] HTTP 404 from https://discord.com/api/v8/channels/328209921944584203/733028471516823692/messages?limit=1
" but if i look at the repo the endpoint my script is pinging is different from the endpoint i thought the script would use at line 86 in discord.py. Shouldnt the guild ID be before the channels in the url?
search = 'https://discord.com/api/{0}/channels/{1}/messages/search?min_id={2}&max_id={3}&{4}'.format(scraper.apiversion, channel, snowflakes[0], snowflakes[1], scraper.query)
Ah, this is a wording issue since most people refer to Discord guilds as "servers" so I made sure to put both terms in the example JSON file.
What it should look like is this:
"guilds": {
"328209921944584203": [
"733028471516823692"
]
}
You can have multiple servers and multiple channels for each server in the config file. Right now the experimental branch code does not offer DM scraping since I haven't figured out a feasible method of converting the ID that you get from right-clicking in the application to the correct ID. (the main branch required you to be logged in to the web browser to copy the correct ID from the URL)