mercredi 20 octobre 2021

Script to get image url of a given tweet

Using python, I want to automatically get the image source of a given tweet (example: tweet), in order to show it (the image) in a dashboard. If you click on the image you will get the tweet url + '/photo/1'. However this can not be downloadable. If you right click on the image (get image source). You will get a link to the image url (https://pbs.twimg.com/media/D0t9bz_XgAAl3hD?format=jpg&name=large), but this link can't be guessed for a automated coding. Any suggestion on how to automatically download or get a tweet image source ?




Aucun commentaire:

Enregistrer un commentaire