Unfortunately I had to rework the publishing process.
#Twitter download picture how to
And last but not least you get a clue how to use that in combination with eleventy.įeel free to try out both example projects and let me know what you think about this topic. Also you learned how you can download the media files from a tweet for a more performant website. I showed you quickly how you can use the twitter API. length i ++ ) Īs mentioned in the beginning, in my real portfolio project I fetch the latest tweet from the JSON file and pass the biggest tweet id as parameter since_id to the Twitter API. project/download/twitter.js#L46-L54 for ( var i = 0 i < results. I want all tweets from my own account but exclude retweets and answers. Please write them down because they are not displayed again after you close the page!
Then you get access tokens and secret keys. Twitter provides a very good documentation. But that will be the subject of one of the following articles. In an ideal world the CI build runs every day and pushes the new tweets to the git repository.
If I use them all the time, I just have to look for the tweets that contain the hashtag drawing (or any other hashtag).
I publish a tweet with specific hashtags. This reduces the effort to maintain that stuff.Įxample: Please go to to see this how this can look like. I publish my drawings on Twitter and I want to fetch the from there and publish them at my site.