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 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 <https://virtualenv.pypa.io/en/latest/>`_ 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 "RANGE_NAME='your_range_name_of_list_in_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 "VK_LOGIN='your_login_vk.com'" >> .env
    echo "VK_PASSWORD='your_password_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_CHAT_ID='your_chat_id_channel_telegram'" >> .env
    echo "TGBOT_LOGGER_CHAT_ID='your_chat_id_of_logger_bot'" > .env
    echo "TGBOT_LOGGER_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.