i want to use `tap-google-sheets` to extract data ...
# singer-taps
j
i want to use
tap-google-sheets
to extract data from multiple google sheets (with different sheet IDs). How do I configure meltano for this?
I figured it out. Not sure if there are more then one way to do it but I'm using https://docs.meltano.com/guide/configuration/#multiple-plugin-configurations
j
If i use
meltano config tap-google-sheets set sheets
that will run all the sheets when running the command
meltano run tap-google-sheets target-jsonl
? What if I wanted to run the sheets at different times? Can a sheetid be passed to the run command?
r
> If i use `meltano config tap-google-sheets set sheet`s that will run all the sheets when running the command
meltano run tap-google-sheets target-jsonl
? > Correct. So if your use-case is specifying the sheet ID at runtime then the approach you linked works. > Can a sheetid be passed to the run command? > You can do
Copy code
TAP_GOOGLE_SHEETS_SHEET_ID=123 meltano run tap-google-sheets target-jsonl
if you don't want multiple inheriting plugin definitions just for the sake of overriding
sheet_id
.
ty 1