smm_autoposter

Maintainability Build Status Documentation Status GitHub wemake-python-styleguide

This script publishes to social networks and messengers on a schedule.

Features

How to install

  • Copy the scripts to your computer:

    git clone https://github.com/eskelevir/smm_autoposter.git
    
  • Go to the folder:

    cd smm_autoposter
    
  • Install the required python packages:

Python3 should be already installed. Then use pip (or pip3, if there is a conflict with Python2) to install dependencies:

pip install -r requirements.txt

Remember, it is recommended to use virtualenv/venv for better isolation.

  • Get the necessary data to work with Google Spreadsheets and Google Drive (instruction)

  • Get the necessary data to work with social networks and messengers (instruction)

  • Create and configure Telegram bot to receive notifications (instruction)

  • Create the file. env and record the received data:

    echo "SPREADSHEET_ID=your_id_of_google_spreadsheet_with_schedule" > .env
    echo "VK_ACCESS_TOKEN=your_token_api_vk.com" >> .env
    echo "VK_GROUP_ID=your_group_id_vk.com" >> .env
    echo "VK_ALBUM_ID=your_album_id_vk.com" >> .env
    echo "FACEBOOK_TOKEN=your_token_facebook.com" >> .env
    echo "FACEBOOK_GROUP_ID=your_group_id_facebook.com" >> .env
    echo "TELEGRAM_TOKEN=your_token_telegram" >> .env
    echo "TELEGRAM_CHANNEL_CHAT_ID=your_chat_id_channel_telegram" >> .env
    echo "TELEGRAM_LOGGER_BOT_CHAT_ID=your_chat_id_of_logger_bot" >> .env
    echo "TELEGRAM_LOGGER_BOT_TOKEN=your_token_of_logger_bot" >> .env
    

How run

python3 main.py

TODO

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Project Goals

The code is written for educational purposes on online-course for web-developers dvmn.org.

Indices and tables