Code Monkey home page Code Monkey logo

Comments (13)

AlizerUncaged avatar AlizerUncaged commented on May 21, 2024 5

@Pab450 @edoardolunardi

I own a math calculator website with solutions to almost all possible textbook equations, for the benefit of the doubt, I make around 1 million pages a month and I need an automated indexer, I own several websites with 10M+ pages as well

image
image

so a good client side rate limiter would be a huge help for sites like mine

from google-indexing-script.

tguillemaud avatar tguillemaud commented on May 21, 2024 4

The API is limited to 200 requests per day (not per second) as per Google Documentation

Since this quota is at the service account level, an option would be for the script to support multiple service accounts credentials.

from google-indexing-script.

Noext avatar Noext commented on May 21, 2024 2

you can ask google more quota, but i a dont think 50m will be accepted lol

from google-indexing-script.

goenning avatar goenning commented on May 21, 2024 2

Agree @AntoineKM I think option 1 is the best one, but also save the progress so the next run would not have to go through the same URLs.

Would you like to send a PR? I don't have such large sites to test it :)

from google-indexing-script.

edoardolunardi avatar edoardolunardi commented on May 21, 2024 1

site has about 6 million web pages, and a 429 error occurs during batch processing.

6 million? That's the number of articles in English on Wikipedia 😆

same problem for me, my site has reached around 50 million pages as well, all in the sitemap, maybe we can implement a rate limit? let's say allow this script to only send 200 requests per minute since that's the maximum allowed request speed. i will run this script indefinitely so id appreciate if we can limit the requests

50 million??? That's the number of all articles in all languages on Wikipedia lol

from google-indexing-script.

rmens avatar rmens commented on May 21, 2024 1

This was also a problem for a site with 15k pages. It couldn't get all the batches. This needs to be more robust with long term local caching of urls and 200 requests per day to the indexing api.

from google-indexing-script.

AlizerUncaged avatar AlizerUncaged commented on May 21, 2024

same problem for me, my site has reached around 50 million pages as well, all in the sitemap, maybe we can implement a rate limit? let's say allow this script to only send 200 requests per minute since that's the maximum allowed request speed. i will run this script indefinitely so id appreciate if we can limit the requests

from google-indexing-script.

Pab450 avatar Pab450 commented on May 21, 2024

same problem for me, my site has reached around 50 million pages as well, all in the sitemap, maybe we can implement a rate limit? let's say allow this script to only send 200 requests per minute since that's the maximum allowed request speed. i will run this script indefinitely so id appreciate if we can limit the requests

50 million ??? how?

from google-indexing-script.

ingeniumdesign avatar ingeniumdesign commented on May 21, 2024

yes, we have the same problem with 25k sites. "429 error"

Is there a way to increase the quota for "money"?
From a maximum of 200 to more?

from google-indexing-script.

ingeniumdesign avatar ingeniumdesign commented on May 21, 2024

is that normal, the Web Search Indexing API has no "Traffic" only the Google Search Console API ? Thanks

direct-indexing-01

from google-indexing-script.

goenning avatar goenning commented on May 21, 2024

I noticed that too on my project, I guess it’s normal or a bug on Google’s side

from google-indexing-script.

AntoineKM avatar AntoineKM commented on May 21, 2024
❌ Failed to request indexing.
Response was: 429
{
  "error": {
    "code": 429,
    "message": "Quota exceeded for quota metric 'Publish requests' and limit 'Publish requests per day' of service 'indexing.googleapis.com' for consumer 'project_number:xxx'.",
    "status": "RESOURCE_EXHAUSTED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "RATE_LIMIT_EXCEEDED",
        "domain": "googleapis.com",
        "metadata": {
          "quota_location": "global",
          "consumer": "projects/xxx",
          "quota_limit_value": "200",
          "service": "indexing.googleapis.com",
          "quota_limit": "DefaultPublishRequestsPerDayPerProject",
          "quota_metric": "indexing.googleapis.com/v3_publish_requests"
        }
      },
      {
        "@type": "type.googleapis.com/google.rpc.Help",
        "links": [
          {
            "description": "Request a higher quota limit.",
            "url": "https://cloud.google.com/docs/quota#requesting_higher_quota"
          }
        ]
      }
    ]
  }
}

A great feature to implement would be to:

  • 1. Stop the process while this error occur (#29)
  • 2. Ask the user if we want to continue or stop the process here
  • 3. Tell the user he can request a higher quota limit or retry in xx hours

from google-indexing-script.

Taimerlan avatar Taimerlan commented on May 21, 2024

I also agree with @AntoineKM The first option is the best.
I also made the script run on a schedule. It would be nice to run it and forget it.

from google-indexing-script.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.