Ranging from image processing to retrieving posts on Reddit
Using the Moviepy and PIL modules, I wrote some functions to overlay videos on images, images on images, etc., as well as video concatenation and text overlay with the textwrap module.
- function(s):
file_over_image, supports imgs, vids, gifsconcat_videotext_overlay
Here's example output for
file_over_imagefor an image of Andrew Ng:
See my other repository on creating a Discord bot (to interface with the Discord API) and having that bot interact with the Youtube Data API. I've written many useful functions to do almost anything + more with Youtube's Playlists in the Discord client.
I've used the Reddit API to mass-retrieve posts/images for a given subreddit and store them (plus other info) in a pandas.DataFrame.
- I followed this article to set up the API in its complex process.
- function(s):
get_subredditload_subreddit_datagenerate_new_api_token
-
Instagram API (instaloader)
- You can use it get posts, stories, etc., so I've used it to retrieve any part of a post based on the shortcode in its url and an optional arg,
postnums. - function(s):
get_insta_post
- You can use it get posts, stories, etc., so I've used it to retrieve any part of a post based on the shortcode in its url and an optional arg,
-
Remove.bg API (here)
- Revome.bg is a nice site that uses ML to remove the backgrounds of images, and has an API that I used just for that.
- function(s):
removebg
See respective .py files for specifics of each function / API
