urlwatch icon indicating copy to clipboard operation
urlwatch copied to clipboard

How to use environment variables in URLs?

Open throwaway29345 opened this issue 4 years ago • 1 comments

I have a question on using environment variables in side a job.

name: "my job"
url: https://mysite.org?api_key=${env variable}
filter:
  - some filter...

Is this possible today?

throwaway29345 avatar Apr 11 '22 16:04 throwaway29345

Not directly, but you can probably use a shell job using e.g. curl to work around it for now:

name: "my job"
command: curl http://google.com/?q=$SOMETHING
filter:
 - ...

Then run urlwatch using e.g.:

SOMETHING=asdf ./urlwatch

thp avatar Apr 11 '22 22:04 thp