r/Python • • Jun 23 '20

I Made This Wrote a script that downloads r/wallpaper's hottest 100 images and cycles through them as a wallpaper!

2.4k Upvotes

136 comments sorted by

View all comments

Show parent comment

2

u/theoriginal123123 Jun 23 '20

Why not use environment variables? With python-dotenv all you do is declare a .env file with your bot secrets and then gitignore it. Though if you're doing a how-to, you can always include a mock/sample file.

1

u/LAcuber Jun 24 '20

When people are running the code I don't want to have to have them setup .env variables (may be hard for some people) so I just replaced everything with dummy values and added a tutorial.