<?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: Divyansh Agrawal</title>
    <description>The latest articles on DEV Community by Divyansh Agrawal (@idiotguy).</description>
    <link>https://dev.to/idiotguy</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%2F430770%2Fcd4812f0-4286-40d2-98d7-e5ec0403d919.jpeg</url>
      <title>DEV Community: Divyansh Agrawal</title>
      <link>https://dev.to/idiotguy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/idiotguy"/>
    <language>en</language>
    <item>
      <title>How to check if a youtube video is shorts or not using nodejs?</title>
      <dc:creator>Divyansh Agrawal</dc:creator>
      <pubDate>Wed, 09 Feb 2022 12:57:47 +0000</pubDate>
      <link>https://dev.to/idiotguy/how-to-check-if-a-youtube-video-is-shorts-or-not-using-nodejs-3ma3</link>
      <guid>https://dev.to/idiotguy/how-to-check-if-a-youtube-video-is-shorts-or-not-using-nodejs-3ma3</guid>
      <description>&lt;p&gt;What if I gave you a youtube video id and asked you to tell Me wether the video is shorts or not without opening it?&lt;br&gt;
How Would You do that?&lt;br&gt;
Simple - &lt;br&gt;
&lt;em&gt;&lt;strong&gt;Introducing &lt;a href="https://www.npmjs.com/package/identify-youtube-shorts"&gt;identify-youtube-shorts&lt;/a&gt; npm package&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
It allows you to easily check if a youtube video is youtube shorts or not&lt;/p&gt;

&lt;h2&gt;
  
  
  Example
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;checkIfYoutubeShorts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;identify-youtube-shorts&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;videoID&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;dQw4w9WgXcQ&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;example&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;videoID&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;ifShorts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;checkIfYoutubeShorts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;videoID&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;ifShorts&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nx"&gt;example&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;videoID&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It will print whether the youtube video with the id - &lt;code&gt;dQw4w9WgXcQ&lt;/code&gt; is a youtube short or not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;p&gt;Easy Just use &lt;code&gt;npm i identify-youtube-shorts&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Read more about it here - &lt;a href="https://www.npmjs.com/package/identify-youtube-shorts"&gt;https://www.npmjs.com/package/identify-youtube-shorts&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to Use Google to Download Fast from Slow Sites or Mirrors?</title>
      <dc:creator>Divyansh Agrawal</dc:creator>
      <pubDate>Tue, 01 Feb 2022 15:13:04 +0000</pubDate>
      <link>https://dev.to/idiotguy/how-to-use-google-to-download-fast-from-slow-sites-or-mirrors-30a4</link>
      <guid>https://dev.to/idiotguy/how-to-use-google-to-download-fast-from-slow-sites-or-mirrors-30a4</guid>
      <description>&lt;p&gt;So... You want to download a Large file of about assume 500 MBs. But The Site is very slow and You Are Getting A Lot Slower download speeds than usual (assume 1 MB/s). &lt;br&gt;
The Just Use Google Colab (google has pretty high speeds ngl)&lt;/p&gt;
&lt;h2&gt;
  
  
  But How?
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Don't Know How to Do it Follow the steps:
&lt;/h3&gt;

&lt;p&gt;1) Go to &lt;a href="https://colab.research.google.com/"&gt;Google Colab&lt;/a&gt; (Obviously...)&lt;br&gt;
2) Create a New Notebook&lt;br&gt;
3) In the first cell write the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;!wget &amp;lt;url&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;change the url according to the &lt;em&gt;direct download url&lt;/em&gt; (Redirecting urls will not work)&lt;/p&gt;

&lt;p&gt;4) Run the cell and wait till it download&lt;br&gt;
5) In a New Cell write the following code to check the filename of the file downloaded&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;!ls
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Copy the filename to your clipboard&lt;/p&gt;

&lt;p&gt;6) In a New Cell We Have to download the file. Write the following code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;google.colab&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;files&lt;/span&gt;
&lt;span class="n"&gt;files&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;download&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;'&amp;lt;filename&amp;gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change the filename with the name you copied&lt;/p&gt;

&lt;p&gt;7) Run the cell and you will see a bar in the output showing your progress. After Some time You will get a save file prompt to finally save the downloaded file to your computer.&lt;/p&gt;

&lt;h4&gt;
  
  
  With this Technique You could now Skip the 2-3 days download time for just 500 MBs to your usual time.
&lt;/h4&gt;

</description>
    </item>
  </channel>
</rss>
