izdwuut's personal place

Tagged in

Python

Create Reddit upvoter using Python and PRAW

Welcome to another tutorial of mine! Be sure to check the previous ones here. In this one, I’m going to cover a script that upvotes every new submission and comment from a given subreddit. Please, don’t try to run it in reverse and downvote all the things. Please… I assume that you have Python installed on your system. The tutorial targets Windows 10 with Powershell. Registering the application In order to use PRAW, we need to register our script first....

Host a Flask app using Apache and mod_wsgi

Now that dust has settled after Youtube Thumbnail Downloader tutorial, it’s time for a new thing. When you run a Flask developement server, it tells you that it isn’t suited for prodution: WARNING: This is a developlment server. Do not use it in a production deployment. Fair point. It hasn’t been tested for security and whatnot. There are a few alternatives, most notably Nginx and Apache. I go for the latter....

Create your own Youtube Thumbnail Downloader in Python

The idea is pretty simple. Given the URL to a Youtube video, the script spews out it’s thumbnail. See this lovely image? It would make for a perfect wallpaper and I wrote a script that does just that. How would Python render it possible, you’d ask? By working hand-in-hand with Youtube API, of course! I should seriously reconsider becoming a clown. I have a hunch that it would come as natural to me....