Skip to content

Commit

Permalink
Remove secrets.template.env
Browse files Browse the repository at this point in the history
This file is no longer needed as we are using GitHub secrets for the environment variables.
  • Loading branch information
chesshacker committed Feb 14, 2024
1 parent bb58f0e commit 34adf53
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
secrets.env
youtube-video-list
3 changes: 3 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"MD013": true
}
1 change: 0 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"-after",
"2019-12-26T00:00:00Z",
],
"envFile": "${workspaceFolder}/secrets.env",
}
]
}
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ To run this program, you will need the following:
this time, it appears re:Invent 2019 videos were posted between December 3 and
December 26.

Before running, you need to copy `secrets.template.env` to `secrets.env` and
replace the placeholder with your YouTube Data API Key.
Before running, you need to the environment variable `YOUTUBE_APIKEY` to your
YouTube Data API Key.

Then you can build and run the program:

```
```sh
make
set -o allexport; source secrets.env; set +o allexport
./youtube-video-list \
-channel UCdoadna9HFHsxXWhafhNvKw \
-after 2019-12-01T00:00:00Z \
Expand All @@ -38,16 +37,14 @@ take a minute or two to return.

I wrote a Python version of this program. You can run:

```
```sh
pip install -r requirements.txt
set -o allexport; source secrets.env; set +o allexport
python youtube-video-list.py \
--channel UCdoadna9HFHsxXWhafhNvKw \
--after 2019-12-01T00:00:00Z \
--before 2019-12-28T00:00:00Z
```


[YouTube Data API Overview]: https://developers.google.com/youtube/v3/getting-started
[AWS Events]: https://www.youtube.com/channel/UCdoadna9HFHsxXWhafhNvKw/videos
[Understanding your channel URLs]: https://support.google.com/youtube/answer/6180214?hl=en
1 change: 0 additions & 1 deletion secrets.template.env

This file was deleted.

0 comments on commit 34adf53

Please sign in to comment.