File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,16 +26,17 @@ Save the service account key to a file named `credentials.json` in the project f
26
26
4 . Add the service account to the Google Search Console project and give it the ` Owner `
27
27
role: [ https://developers.google.com/search/apis/indexing-api/v3/prereqs#verify-site ] ( https://developers.google.com/search/apis/indexing-api/v3/prereqs#verify-site )
28
28
29
+ 5 . You may need to enable Web Search Indexing API. Visit https://console.cloud.google.com/apis/api/indexing.googleapis.com and click "ENABLE".
29
30
30
- 5 . Change the sitemap URL in the ` index.py ` file:
31
+ 6 . Change the sitemap URL in the ` index.py ` file:
31
32
32
33
``` python
33
34
website_sitemap = ' https://example.com/sitemap.xml'
34
35
```
35
36
36
37
The script will index all the pages from the sitemap. It will also find all the sitemaps in the sitemap index file and index all the pages from them.
37
38
38
- 6 . Run the script using the following command:
39
+ 7 . Run the script using the following command:
39
40
40
41
``` shell
41
42
python index.py
You can’t perform that action at this time.
0 commit comments