Using Python Requests to Retrieve/Scrape Discord Messages (Discord Token)

Using Python Requests to Retrieve/Scrape Discord Messages (Discord Token)

Codium

3 года назад

56,855 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

JohnnytheJS
JohnnytheJS - 01.09.2023 00:29

THANK YOU SO MUCH FOR THIS VIDEO I NEEDED THIS SO MUCH

Ответить
Telefondemonen_se
Telefondemonen_se - 05.08.2023 00:27

Great video!

Ответить
Dominic Prior
Dominic Prior - 30.07.2023 10:58

Wow, such a nice clear video! Many thanks!

Ответить
punk
punk - 11.05.2023 03:21

This video was extremely helpful thank you!

Ответить
GeNe FRAG
GeNe FRAG - 04.04.2023 23:00

Anybody solved the 50 message limit problem?

Ответить
Sigurd Jensen
Sigurd Jensen - 19.03.2023 12:24

Unfortunately this only works for 100 messages. Anything beyond that is 'code': 'NUMBER_TYPE_MAX'. Will edit if I find a workaround

edit:
The workaround is to use ?before instead of ?limit.
Then find the latest message ID, by clicking the message (with limit) as shown in the video, and selecting the newest id. Return the newest ID back
Then run the function within a while loop, update the newest message and a boolean value.

Make the following changes to the code:
(if len(jsonn) < 50: moremessages = false
return [jsonn[-1]['id'], moremessages

while(1)
retuple = retrieve_messages('{id}', last_id)
if retuple[1] == false: break
last_id = retuple[0]

Ответить
Coffee Gamer
Coffee Gamer - 19.02.2023 22:56

ATTENTION
That is your user id don’t share it with ANYBODY if you have change your password immediately

Ответить
Pockets Full of Dynamite
Pockets Full of Dynamite - 11.02.2023 05:43

Is this possible using bs4

Ответить
SalehGamerSA
SalehGamerSA - 10.02.2023 16:32

thank you so much

it is working but it gets all the messages was sent to the channel

is there a way that i can get content from a specefic message content in the channel
for examble using the "message copyID" or "copy message link"

Ответить
R H
R H - 23.01.2023 14:00

Anyone get banned yet for acting like a selfbot?

Ответить
ArtizanDigital
ArtizanDigital - 07.01.2023 14:49

This guy is a scammer. Don't fall to him. Do not send any money. He scammed me. Be careful!

Ответить
Yiwen Sin
Yiwen Sin - 03.01.2023 18:24

Excellent! Thanks a lot!

Ответить
Double G
Double G - 25.12.2022 07:36

Cool, but how could I input in a server ID and scrape it? The code only works for a specific channel. I have a server I want to scrape but it has ~450 channels so I don't want to manually input all 450 into my code

Ответить
wheel group user
wheel group user - 24.11.2022 06:16

You deserve more subs

Ответить
ozzy1987mr
ozzy1987mr - 30.10.2022 15:29

simple y eficiente... me salvaste la vida con un proyecto personal, soy nuevo en python y estoy muy agradecido de tener en la comunidad gente como usted que hace las cosas tan simple y nos enseña que la observacion de una pagina nos puede dar mucho mas de lo que esperamos.. nuevo sub

Ответить
Boris Shnider
Boris Shnider - 06.09.2022 15:55

Can I paste the data to my own discord server?

Ответить
Regur Master
Regur Master - 31.08.2022 13:03

Bro please make a new video in new discord api version v9 this video is not helpful it's sending JSON with error code and message......

Ответить
ConteX
ConteX - 25.08.2022 06:22

thank you this is what I needed, since ordinary discord bots only respond on events

Ответить
Faizan Ashraf
Faizan Ashraf - 20.08.2022 15:51

I get only 50 messages how can I get all message history even changing the limit it only allows to change the value to 100 not more than that

Ответить
No One
No One - 19.08.2022 14:41

does it work in discord v9?

Ответить
E Prushan
E Prushan - 23.06.2022 22:04

It seems that using this method only returns the last 50 messages. Is there a way to scrape an entire channel?

Ответить
squiddymute
squiddymute - 22.06.2022 09:47

however you don't get ALL the messages ..the question still remains

Ответить
brad baillie
brad baillie - 04.05.2022 00:47

how petty pay you for help and scam me $30..

Ответить
JohnnyOmm
JohnnyOmm - 19.04.2022 05:53

now how do we print this on a react native desktop app simply lol

Ответить
Joel
Joel - 07.04.2022 21:22

That video was crisper than the clicks from your keyboard

Ответить
Cap
Cap - 21.03.2022 02:31

thank you so much, i was looking for such a code a whole day :)

Ответить
Ravi Singh
Ravi Singh - 20.03.2022 21:15

Brother this script is not retrieving bot messages how can i get those too

Ответить
Rodion Pankratov
Rodion Pankratov - 07.03.2022 23:58

Thank you!

How would you do, that you only read the last message and do not retrieve all of them?

Ответить
Willy Golden
Willy Golden - 03.03.2022 21:02

When I click on command, shit, "i", all it does is launch my mail app. How do I disable this so ai can actually find authorization key?

Ответить
domiflichi
domiflichi - 22.02.2022 18:37

Thank you, thank you, thank you! This is exactly what I was looking for! Liked, and SUBSCRIBED!

Ответить
Luke
Luke - 16.02.2022 12:14

Is there a way to put this into a discord bot and to search for one or two key words?

Ответить
william troll
william troll - 08.02.2022 21:01

Thanks but is it possible to show the newest messages first?

Ответить
Tran Truong
Tran Truong - 05.02.2022 19:37

thank you bro, it's very helpful

Ответить
Anjani Kumar
Anjani Kumar - 05.02.2022 13:46

only getting a few messages in this way, how to get the whole history of texts typed in a channel ?

Ответить
4WhatItsWorth
4WhatItsWorth - 05.02.2022 00:03

Do you know of how I can collect the 'server stats' of all the discord servers I am joined to. I would like to create a python script that can use the server ID and automatically collect the server stats. Thanks in advance....

Ответить
Magnus Laue
Magnus Laue - 03.02.2022 04:20

I keep getting a TypeError, the program doesn't like that value["contents"] has string as an indice

Ответить
Calorsi
Calorsi - 12.01.2022 15:14

So underrated

Ответить
slh ramtin
slh ramtin - 10.01.2022 14:23

Hi is there a way to receive messages updates not history? like as soon as a message is sent in one channel we receive it.

Ответить
Mark W
Mark W - 19.12.2021 03:11

This is neat, but I have no idea how to use the request library. I feel like I'm missing some fundamental knowledge here.

Ответить
BarracudaLake
BarracudaLake - 04.12.2021 20:30

how to edit them

Ответить
Flo
Flo - 18.11.2021 07:31

nice video. can we get banned from dc server if spamming requests.get?

Ответить
Sinchan Rai
Sinchan Rai - 04.11.2021 08:01

thanks dud , this is exactly what i needed to automate virtual fishing in discord

Ответить
brni
brni - 21.10.2021 17:54

and then you dont put the source code in the description, what a pain in the ass...

Ответить
LagAttack
LagAttack - 10.10.2021 03:30

Is there a way to fetch the same type of data from private chats?

Ответить
HeatedPants
HeatedPants - 01.10.2021 11:11

why is it showing:

message

code

Ответить
TeamSonicChannel
TeamSonicChannel - 21.09.2021 08:57

does this works when you lost your account from two factor authentication?

Ответить
Afaq Nabi
Afaq Nabi - 12.09.2021 09:25

can you send a get request like that to a discord server that you don't own without getting banned or anything?

Ответить
Dhut Lid
Dhut Lid - 09.09.2021 09:21

love you!

Ответить