➡️ For Memes, It uses the PRAW – Python Reddit API Wrapper and fetches Memes Images from the different Reddit Pages.
➡️ On fetching Meme image from Reddit, using Pillow library the image is edited to make image ratio 1.0, and a watermark is added at the top right corner. As the editing is complete it saves the image and is then posted on Instagram using the Instabot package.
➡️ For facts, It uses the Random useless facts API
➡️ On fetching the fact it is parsed through Rapid Automatic Keyword Extraction algorithm (Rake-nltk) which gives a keyword from the fact. The extracted keyword is then passed to unsplash API for searching that relevant picture for the fact.
➡️ After receiving all the metrics and images, using Pillow library the image is edited with the fact and a watermark. As the editing process is complete it saves the image and is then posted on Instagram using the Instabot package.
➡️ The bot is deployed via Heroku and scheduled to run at intervals using Herokuscheduler.