<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: JavideJ</title>
    <description>The latest articles on DEV Community by JavideJ (@javidej).</description>
    <link>https://dev.to/javidej</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F791998%2Fa9b06642-6d24-4469-91d5-0d750f2e1d5d.jpeg</url>
      <title>DEV Community: JavideJ</title>
      <link>https://dev.to/javidej</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/javidej"/>
    <language>en</language>
    <item>
      <title>YT Dislikes Twitter Bot</title>
      <dc:creator>JavideJ</dc:creator>
      <pubDate>Wed, 12 Jan 2022 23:39:22 +0000</pubDate>
      <link>https://dev.to/javidej/dislikes-twitter-bot-52b2</link>
      <guid>https://dev.to/javidej/dislikes-twitter-bot-52b2</guid>
      <description>&lt;h3&gt;
  
  
  Overview of My Submission
&lt;/h3&gt;

&lt;p&gt;YT_dislikes is a twitter bot that allows you to know the number of dislikes (and likes) of a YouTube video. Now it is not possible to see the number of dislikes in YouTube. To discover it, tweet tagging @YT_dislikes and adding the url of the YouTube video and the bot will answer you with the stats.&lt;/p&gt;

&lt;p&gt;UPDATE! Now we can´t get the number of &lt;code&gt;dislikes&lt;/code&gt; from the API (I´m sad), so this update includes the Return Youtube Dislike Chrome extension (thanks) to unlock them on the YouTube website. This number of dislikes is a prediction they do thanks to their great database.&lt;/p&gt;

&lt;p&gt;This is how the bot works:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Get the last 20 tweets tagging the bot&lt;/li&gt;
&lt;li&gt;Compare their tweet ID to the ones stored in the Mongo database (which are the tweets already answered)&lt;/li&gt;
&lt;li&gt;If those IDs are already in the database, do nothing&lt;/li&gt;
&lt;li&gt;If one or some are not in the database, use Selenium to get a screenshot of the likes/dislikes and generate a reply to the tweet&lt;/li&gt;
&lt;li&gt;Add these tweets ID to the database&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And these are the main tools used:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;pyMongo&lt;/li&gt;
&lt;li&gt;Tweepy&lt;/li&gt;
&lt;li&gt;YouTube Data API&lt;/li&gt;
&lt;li&gt;Selenium&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Submission Category
&lt;/h3&gt;

&lt;p&gt;Choose Your Own Adventure&lt;/p&gt;

&lt;h3&gt;
  
  
  Link to Code
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/JavideJ/YT_dislikes_bot"&gt;https://github.com/JavideJ/YT_dislikes_bot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tweet&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5D8NhA38--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9qp9waj49uox50m7krlt.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5D8NhA38--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9qp9waj49uox50m7krlt.PNG" alt="Tweet" width="589" height="291"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Automatic reply&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yzRsChjN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/folxrnrejxdphciknpp4.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yzRsChjN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/folxrnrejxdphciknpp4.PNG" alt="Automatic reply" width="587" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VeAqU0C_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4hvo9ji9b2cz07tqwmfl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VeAqU0C_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4hvo9ji9b2cz07tqwmfl.png" alt="Automatic reply" width="559" height="130"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>atlashackathon</category>
    </item>
  </channel>
</rss>
