Automating Google Indexing in AI Blogging

taurin

Junior Member
Joined
Oct 24, 2023
Messages
182
Reaction score
207
I started browsing this forum because I stumbled upon articles about AI autoblogging. Interestingly, I began doing this even before I found it online. I came up with the idea myself, wrote code for my own project, and now I can upload content with just one click. Moreover, this one click also sends the articles for indexing to Google via the API. This might have been discussed on the forum before, but repetition is the mother of learning. I hope that linking to GitHub is allowed by the forum rules :anyway:

The script for indexing pages in Google is available on GitHub (Google Indexing API).

Prerequisites:​

  1. Setting up accounts: First, you need to create and prepare your accounts (Google Cloud Console) and generate your credentials (json file). Store the credentials in a 'credits' folder.
  2. Domain Ownership: All these accounts should also be added to each domain in the Search Console with 'Owner' permissions. You can follow this video tutorial for the setup.
  3. URL List: Write the URLs you wish to index in a urls.txt file.
Tip: You can get the URLs from your sitemap. There's a script called parse_sitemap.py in the repository (Check it here).

How it Works:​

The script rotates accounts: once a specific account reaches the daily limit (200), it switches accounts and continues working until all account limits are exhausted.

Documentation:​

You can find modest documentation here.


Bonus:​

There's a sitemap pinger for Google called google_ping_sitemaps (Find it here). You can provide an unlimited list of sitemap.xml files, and they will be pinged in sequence. Google will soon discontinue this feature on ~ January 26, 2024 (Read More), but it's still working for now.
 
Nice find. I didnt see this script before but know and use the API.

Did you have luck so far? I figured that you quickly run into soft bans with too much new content even if it is fairly qualitative.
 
Back
Top