Got it! This site uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.nbsp; Note: This appears on each machine/browser from which this site is accessed.
This manual operation can be automated using, say, Python.
The code shows how a date and time stamp might be created in order to save the results on a periodic basis to a file in a given folder.
5. Python example
Here is the Python code.
Here is the output of the Python code.
6. Notes
In the result, the first element in the list is the search term provided. The second item is a list of suggestions which, of course, will always start with the search term provided since the suggestions are intended to help complete what is typed for a search (of the Google site).
7. Saving results
One way to save results as JSON (or other format) is as follows.
Create a date and time stamp such as 2020-04-01-12 (assuming once per hour, suffix 00 to 23) of the general form yyyy-mm-dd-hh to be used as a file name.
If all the files are in one folder, there is no need for a file name prefix to distinguish files.
8. Research
A few years ago, I set up a Raspberry Pi to periodically get the suggested search term completion suggestions for a set of search terms. The idea was to wake up every few hours (say 1 to 24 times a day, using a cron job), and check the suggestions.
The analysis then was to determine, over time, what search terms and orderings had changed.