tap-google-search-console is a Singer tap for google-search-console.
Built with the Meltano Tap SDK for Singer Taps.
Install from GitHub:
pipx install git+https://github.com/MeltanoLabs/tap-google-search-console@mainRequired
The site you want to retrieve metrics for, preceeded with sc-domain - i.e. sc-domain:meltano.com.
Your client secrets must have permission to access this site.
Required
A JSON string of your Google service account client secrets
https://developers.google.com/identity/protocols/oauth2/service-account
Required
The date from which you want to retrive metrics from.
Default: True
Search data for the latest few days can change due to late received data and processing at Google. If you do not want to retrieve that is not 'final', this value can be set to False
If this value is set to False you will not be able to retrieve data for the most recent dates.
Default: 3
The backfill extends the start date by this number. With a start date of 2024-12-01 and a backfill of days. Combining this setting with include_freshest will mean you always retrieve the latest data, but overwrite this with 'final' data as this is available.
A full list of supported settings and capabilities for this tap is available by running:
tap-google-search-console --aboutThis Singer tap will automatically import any environment variables within the working directory's
.env if the --config=ENV is provided, such that config values will be considered if a matching
environment variable is set either in the terminal context or in the .env file.
You will need to generate a service account credential for your Google Account and authorize this account to access the Google Search Console.
https://developers.google.com/identity/protocols/oauth2/service-account
You can easily run tap-google-search-console by itself or in a pipeline using Meltano.
tap-google-search-console --version
tap-google-search-console --help
tap-google-search-console --config CONFIG --discover > ./catalog.jsonFollow these instructions to contribute to this project.
pipx install poetry
poetry installCreate tests within the tests subfolder and
then run:
poetry run pytestYou can also test the tap-google-search-console CLI interface directly using poetry run:
poetry run tap-google-search-console --helpTesting with Meltano
Note: This tap will work in any Singer environment and does not require Meltano. Examples here are for convenience and to streamline end-to-end orchestration scenarios.
Next, install Meltano (if you haven't already) and any needed plugins:
# Install meltano
pipx install meltano
# Initialize meltano within this directory
cd tap-google-search-console
meltano installNow you can test and orchestrate using Meltano:
# Test invocation:
meltano invoke tap-google-search-console --version
# OR run a test `elt` pipeline:
meltano elt tap-google-search-console target-jsonlSee the dev guide for more instructions on how to use the SDK to develop your own taps and targets.