Skip to content

zsat/various-python-apis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Some Fun Python APIs + Modules

Ranging from image processing to retrieving posts on Reddit


Image Processing

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, gifs
    • concat_video
    • text_overlay

Here's example output for file_over_image for an image of Andrew Ng:


Discord, Youtube Data APIs

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.


Reddit API

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_subreddit
    • load_subreddit_data
    • generate_new_api_token

Other APIs

  • 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
  • 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

About

A collection of notable APIs and modules I've used in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages