SMM planer
– this code will help you to organize and make post by the date and time in such social networks and messengers as: Vkontakte
, Facebook
, Telegram
.
Create and fill in Google Sheets as in an example and save your time.
Python3 have to be already installed. Then use pip (or pip3, there is a contravention with Python2) to install dependencies:
https://github.com/djeck1432/smm_planer.git
After you downloaded the repository open a folder post_in_socialnetworks
using next command:
cd smm_planer
Now all of the required libraries and modules have to be installed:
pip install -r requirements.txt
Now we are ready for the script .
SPREAD_SHEET_ID
- id
your table;
In social network Vk
:
VK_PHONE
- registered phone number Vk
;
VK_PASSWORD
- password;
VK_ALBUM_ID
- id
album in your group ;
VK_OWNER_ID
- id
your page;
In social network Fb
:
FACEBOOK_TOKEN
- token from Fb
;
FACEBOOK_GROUP_ID
- group id
in Fb
;
In messenger Telegram
:
TELEGRAM_TOKEN
- token Telegram
;
TELEGRAM_CHAT_ID
- username of account Telegram
;
- Follow this link.
- Push the button `Enable the Google Sheets API` to download the keys to your account in `Google`.
- Put in data in the folder of the project.
- Open the website, `Google Sheets`.
- In the address bar, there will be a link of this type: `https://docs.google.com/spreadsheets/d/1uzAoBYWrmxAGAyENIZ7EJ0HwHD_JxtWSELG4ppYVvT0/edit?ts=5e20d988#gid=0`.
- `1uzAoBYWrmxAGAyENIZ7EJ0HwHD_JxtWSELG4ppYVvT0` - this is your `SPREAD_SHEET_ID`
In bash
run the following command:
python3 main.py
After running the code, a window will open in your browser for authorization to your Google Drive
.
After authorization, close the window.
Your program is up and running, congratulations!