<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Twitter4j on Yonatan Karp-Rudin</title><link>https://yonatankarp.github.io/tags/twitter4j/</link><description>Recent content in Twitter4j on Yonatan Karp-Rudin</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 15 Dec 2021 00:00:00 +0100</lastBuildDate><atom:link href="https://yonatankarp.github.io/tags/twitter4j/index.xml" rel="self" type="application/rss+xml"/><item><title>Build your own Twitter Bot with Kotlin</title><link>https://yonatankarp.github.io/blog/build-twitter-bot-kotlin/</link><pubDate>Wed, 15 Dec 2021 00:00:00 +0100</pubDate><guid>https://yonatankarp.github.io/blog/build-twitter-bot-kotlin/</guid><description>&lt;p&gt;I read an excellent article by &lt;a href="https://medium.com/u/f864d52751a7"&gt;Martin Erlic&lt;/a&gt; called &amp;ldquo;&lt;a href="https://medium.com/@SeloSlav/how-to-make-a-scary-russian-twitter-bot-with-java-b7b62768a3ac"&gt;How To Make a Scary Russian Twitter Bot With Java&lt;/a&gt;&amp;rdquo; and I wanted to update it using Kotlin.&lt;/p&gt;
&lt;p&gt;Unlike the original article, I will use Kotlin, a newer and more modern JVM-based language, and Gradle as the build system.&lt;/p&gt;
&lt;p&gt;To build the bot, follow these simple steps:&lt;/p&gt;
&lt;h3 id="step-1--create-a-twitter-application"&gt;Step 1 — Create a Twitter Application&lt;/h3&gt;
&lt;p&gt;The first step is to create a &lt;a href="https://apps.twitter.com/"&gt;Twitter Application&lt;/a&gt; using the user account you want to perform the API requests with. By creating the Twitter application, you will obtain the API key and API secret, which we&amp;rsquo;ll later use to authenticate our bot with Twitter.&lt;/p&gt;</description></item></channel></rss>