🇺🇸 This project aimed to use python to automatically create posts for Instagram.
🇧🇷 Este projeto teve por objetivo utilizar Python para automaticamente criar posts para o Instagram.
The algorithm automatically creates a post for an Instagram that talks about Brazilians women in science, as follows:
The process is simple:
- the user runs the code, and types the name of famous women in science;
- the algorithm search, and scraps information and photo of this person on Wikipedia (although it is also possible to write your own post, without getting a text from Wikipedia); -- the text information scrapped are adjusted to 200 characters to create a post, and 2000 to create a description to the post;
- these data are adjusted to a PPTX (which has to be previously formated);
- the algorithm converts the PPTX to JPG; and
- the algorithm posts the JPG and its description on the Instagram user's profile.
As a result, it is possible to create a post based on information on Wikipedia, and post on Instagram in less than 1 minute. The following shows a series of automatic posts made on the account @somosmulhersdobrasil, as follows:
Recommendation:
- Before you start, it is important to access the PPTX model and configure your own slide structure, i.e. changing the background color, fonts, and so on.
Suggestions for the future:
- Create an executable and a user interface that allows users to use this app without an IDE.
- Develop a way to surpass the necessity of reviewing the PPTX before the post.
- During this project, I learned who to:
- use wikipedia api;
- use codes to edit a csv;
- use pptx package to create and edit ppt files;
- use PIL package to edit images; and
- use Instabot package to interact with Instagram by IDE.
- To run the code it is recommended to use an IDE, such as Pycharm;
- Just clone this project, open on your IDE, and run.
To run the code, it is recommended to install the following Python Packaged:
- atomicwrites==1.4.0
- attrs==20.3.0
- beautifulsoup4==4.9.3
- certifi==2020.12.5
- chardet==4.0.0
- colorama==0.4.4
- decorator==4.4.2
- future==0.18.2
- huepy==1.2.1
- idna==2.10
- imageio==2.9.0
- imageio-ffmpeg==0.4.3
- iniconfig==1.1.1
- instabot==0.117.0
- lxml==4.6.3
- mock==4.0.3
- moviepy==1.0.3
- numpy==1.20.2
- packaging==20.9
- pandas==1.2.4
- Pillow==8.2.0
- pluggy==0.13.1
- proglog==0.1.9
- py==1.10.0
- pyparsing==2.4.7
- PySocks==1.7.1
- pytest==6.2.3
- python-dateutil==2.8.1
- python-pptx==0.6.18
- pytz==2021.1
- pywin32==300
- requests==2.25.1
- requests-toolbelt==0.9.1
- responses==0.13.2
- schedule==1.1.0
- six==1.15.0
- soupsieve==2.2.1
- toml==0.10.2
- tqdm==4.60.0
- urllib3==1.26.4
- wikipedia==1.4.0
- XlsxWriter==1.3.9
# Clone this repository
$ git@github.com:rosadigital/InstaPost-Creator.git
# Open the repository on pycharm
Felipe Rosa on LinkedIn
This project is licensed under MIT.
Este projeto esta sobe a licença MIT.
Made with ❤️ by Felipe Rosa 👋🏽 Contact here!
Feito com ❤️ por Felipe Rosa 👋🏽 Entre em contato!
--