Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can it work for multiple websites and multiples services account #47

Open
I-JUST-TRY opened this issue Mar 29, 2024 · 1 comment
Open

Comments

@I-JUST-TRY
Copy link

Hi and thank for that amazing work!

I apologize if the question seems stupid, but I have around 50 sites to index, each with approximately 1000 URLs. I have about 300 service accounts, and all the sites have their sitemaps properly set up in Google Search Console.

Do you know what modifications need to be made to the script so that after requesting indexing for 200 URLs, the script switches to a new service account to avoid being blocked by the API limits?

Same question to switch from 1 website to another

Thank you so much

@AntoineKM
Copy link
Contributor

AntoineKM commented May 16, 2024

Let's summarize the issues and limitations of this to be sure of what we could do:
We're using 2 APIs:
Google Search Console
Limits: 600 RPM by site | 15 000 RPM by project
This would be of no interest here, since the project has a higher RPM than the site. It would only become problematic when used on several sites simultaneously using the same project.

However, this can happen, so the best thing to do would be to stop the script for a minute to make sure you've recovered your quota, or record the date of the last inspection, and if you notice that 600 URLs have been inspected in the last minute, pause it until you've recovered your usage.

Google Indexing
Limits: 200 RPD by project
Disadvantage: All service accounts must have site access permissions on the Seach Console dashboard.
Advantage: RPD multiplied by the number of service accounts, which is not insignificant given the very low limit.

You'll need:

  • Add the possibility of putting several service accounts, for example, in a ./service_account folder.
  • Check from the outset whether the service accounts are valid and have access to the site.
  • Suggest changing the service account as soon as the limit is reached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants