1 Solicita la descarga de tus datos de Twitter. Ve a "Configuración" -> "Cuenta" -> "Tus datos de Twitter" (Puede tomar hasta 24 horas (o más) para que Twitter prepare tus datos para la descarga. Así que hay que esperar)
2 Una vez que tus datos estén listos, recibirás un correo electrónico con un enlace para descargar un archivo zip. Extrae el archivo zip y ve al directorio "data" para acceder a tus datos de Twitter.
3 Inicia sesión en Twitter usando el navegador Brave, Chrome o Edge y encuentra cualquier tweet que desees eliminar. Lo vamos a usar para extraer tus credenciales de autenticación para el siguiente paso. Así que:
3.1) Abre las herramientas de desarrollo (F12) y selecciona la pestaña "Red".
3.2) Elimina el tweet como lo harías normalmente.
3.3) Escribe "delete" en el filtro de herramientas de desarrollo. Te mostrará una solicitud llamada DeleteTweet (https://twitter.com/i/api/graphql/.../DeleteTweet
).
3.4) Haz clic derecho en ella y selecciona "Copiar" -> "Copiar como PowerShell".
4
Guarda borrar_tweets.ps1
en tu directorio "data".
Ábrelo en un editor de texto.
Ve a la línea donde dice PEGAR DEBAJO DE ESTA LINEA
y pega lo que copiaste en el paso 3.4.
5
Ahora debemos hacer dos reemplazos en lo que acabamos de pegar.
En ambos casos hay que reemplazar el numero de ID (NUMERO) por la variable $tweetId
Deberias ver algo asi:
5.1)
"referer"="https://twitter.com/yourTwitterUser/status/NUMERO"
por
"referer"="https://twitter.com/yourTwitterUser/status/$tweetId
5.2)
"variables`":{`"tweet_id`":`"NUMERO`",`"dark_request`":false},`"queryId`":`"VaenaVgh5q5ih7kvyVjgtg`"}"
por
"variables`":{`"tweet_id`":`"${tweetId}`",`"dark_request`":false},`"queryId`":`"VaenaVgh5q5ih7kvyVjgtg`"}"
6 Abre PowerShell como administrador en el directorio "data" y ejecuta el script.
-
Request a download of your Twitter data. Go to "Settings" -> "Account" -> "Your Twitter Data". It may take up to 24 hours (or more) for Twitter to prepare your data for download. So, we have to wait.
-
Once your data is ready, you will receive an email with a link to download a zip file. Extract the zip file and go to the "data" directory to access your Twitter data.
-
Login to Twitter using Brave, Chrome or Edge browser and find any Tweet you want to delete. We're going to use it to extract your authentication credentials for the next step. So:
3.1) Open developer tools (F12) and set the network tab. 3.2) Delete the tweet as you would normally do it. 3.3) In the developer tools filter, write "delete". It will show you a request called "DeleteTweet" (
https://twitter.com/i/api/graphql/.../DeleteTweet
). 3.4) Right-click it and select "Copy" -> "Copy as PowerShell". -
Save
borrar_tweets.ps1
into your "data" directory. Open it in a text editor. Go to the line where it saysPASTE BELOW THIS LINE
and paste what you have copied in step 3.4.
5
Now we need to make two replacements in what we just pasted.
In both cases, we need to replace the ID number (NUMBER) with the $tweetId
variable
It should be something like:
5.1)
"referer"="https://twitter.com/yourTwitterUser/status/NUMBER"
to
"referer"="https://twitter.com/yourTwitterUser/status/$tweetId
5.2)
"variables`":{`"tweet_id`":`"NUMBER`",`"dark_request`":false},`"queryId`":`"VaenaVgh5q5ih7kvyVjgtg`"}"
to
"variables`":{`"tweet_id`":`"${tweetId}`",`"dark_request`":false},`"queryId`":`"VaenaVgh5q5ih7kvyVjgtg`"}"
- Open PowerShell as an Administrator in the data directory and run the script.