To check if a webpage has been indexed by Google, you can manually search for site:<webpage> in a Google Search, for example: site:https://www.shellhacks.com/indexed-by-google-pages-checker-on-python.
If the page is indexed by Google, you will see the URL in the result of the Google Search, otherwise you will see the message as follows:
Your search – site:https://www.shellhacks.com/indexed-by-google-pages-checker-on-python – did not match any documents.
If you need to check multiple pages, it will be much more efficient to create a Python script for checking the pages indexed by Google.
This note shows an example of the minimal Python script for checking the pages indexed by Google, that can be used as a base and improved according to your needs. (more…)