<?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: toghani</title>
    <description>The latest articles on DEV Community by toghani (@toghani).</description>
    <link>https://dev.to/toghani</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%2F445659%2F8f817b3c-99df-4b3b-b922-e43a8a91d35f.jpeg</url>
      <title>DEV Community: toghani</title>
      <link>https://dev.to/toghani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/toghani"/>
    <language>en</language>
    <item>
      <title>Google rank tracker with python script</title>
      <dc:creator>toghani</dc:creator>
      <pubDate>Fri, 19 Nov 2021 00:15:53 +0000</pubDate>
      <link>https://dev.to/toghani/google-rank-tracker-with-python-script-5ac</link>
      <guid>https://dev.to/toghani/google-rank-tracker-with-python-script-5ac</guid>
      <description>&lt;p&gt;This script finds the rank of your keywords and automatically imports it in your Google Sheet! All you have to do is enter the keywords in keywords.txt and the website url in website.txt then run the script, that's it! See the ranking of your words in Google Sheet&lt;/p&gt;

&lt;p&gt;If you want use this script &lt;a href="https://github.com/toghani/Google-keyword-rank-tracker"&gt;click here&lt;/a&gt; and follow my github tutorial&lt;/p&gt;

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

&lt;ol&gt;
&lt;li&gt;Clone the repository in your local storage (or you can use google colab)&lt;/li&gt;
&lt;li&gt;Import your keywords in keywords.txt (Each word in a line)&lt;/li&gt;
&lt;li&gt;Add your website URL in website.txt&lt;/li&gt;
&lt;li&gt;Enable the API and grab your credentials for &lt;a href="https://github.com/nithinmurali/pygsheets"&gt;pygsheets&lt;/a&gt;, (Use google sheet in python)&lt;/li&gt;
&lt;li&gt;Edit 52 and 55 lines in keyword-tracker.py based on the previous step&lt;/li&gt;
&lt;li&gt;Install robobrowser
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install robobrowser
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Install pygsheets
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install pygsheets
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Enjoy!&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Enable the API for use pygsheets
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt; Head over to the  &lt;a href="https://console.developers.google.com/"&gt;Google API Console&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt; Create a new project by selecting My Project -&amp;gt; + button&lt;/li&gt;
&lt;li&gt; Search for 'Google Drive API', enable it.&lt;/li&gt;
&lt;li&gt; Head over to 'Credentials' (sidebar), click 'Create Credentials' -&amp;gt; 'Service Account Key'&lt;/li&gt;
&lt;li&gt; Select Compute Engine service default, JSON, hit create.&lt;/li&gt;
&lt;li&gt; Open up the JSON file, &lt;strong&gt;share your spreadsheet with the "&lt;a href="mailto:XXX-compute@developer.gserviceaccount.com"&gt;XXX-compute@developer.gserviceaccount.com&lt;/a&gt;" email listed.&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt; Save the JSON file wherever you're hosting your project, you'll need to load it in through Python later.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>python</category>
      <category>seo</category>
      <category>ranktracker</category>
      <category>google</category>
    </item>
  </channel>
</rss>
