Giter VIP home page Giter VIP logo

insta-bot's Introduction

Insta-Bot

Bot that receives (or not) a phrase, edit an image with the phrase and post it on instagram in portuguese and english

Description

This project utilizes 4 bots plus ImageMagick to insert a phrase into an image, the author of this phrase and post the image on Instagram. A post request is made to the backend, and the bot will see if there is a unused phrase on the mongodb database (I've made a Telegram Bot to insert images, you can access it here). If there aren't, the backend will call a bot to scrap an phrase and author from the website pensador.com. After getting the content, the picture bot will get an random image in the dimensions 1050x1040 from lorem picsum and save it on the temp file, with size optimized. Soon after the image bot ends, a translator bot will be called to translate the phrase to portuguese and english and returning the text translated. With the new two texts, the exec function will be called and ImageMagick will build the image with some effects, the texts translated, a label for the author and save it on the uploads folder. So, the instagram bot will be called to post the images on a english and portuguese profiles. To finish, the backend will clean the two folders, uploads and temp.

Installation and How To Run

To run this work, you will need ImageMagick and GraphicsMagick on your machine. Although its not required, to build the images I've used the Roboto-Black and Bebas-Neue-Regular fonts. After installed Image and Graphics Magick, download/clone this repo and run npm install to download the dependencies needed for this project. After that, run npm start to run the application and do a post request on the '/image'.

insta-bot's People

Contributors

allenfang avatar alsoicode avatar bashleigh avatar beeman avatar ben-webantic avatar blazeu avatar brunnerlivio avatar dependabot[bot] avatar e-watson avatar elylucas avatar fanybook avatar guilhermesmartins avatar hiagodotme avatar jajaperson avatar kamilmysliwiec avatar konradlinkowski avatar lambdacasserole avatar maximzinovik avatar mchelen avatar nosfistis avatar progral avatar renovate-bot avatar rpihlak avatar rubencodeforges avatar rubiin avatar sacro avatar schinvendy avatar whitekiwi avatar xorik avatar yurykozhenov avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

httpassoca

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.