Giter VIP home page Giter VIP logo

grabber-php-vk's Introduction

Grabber-Php-VK

Наполняйте постами свои группы в вк

Установка:

Получаем ID нашей группы и целевых групп

Группы обязательно прописывать с дефисом "-" Сайт, чтобы получить ID групп

Клонируем репозиторий к себе

git clone https://github.com/Mayamee/Grabber-Php-VK

Получаем токен доступа VK:

  • Создаем standalone приложение вк ссылка

  • Переходим настройки, состояние - выбираем приложение включено типа тут группы

  • Получение токена через ImplicitFlow

Делаем http запрос:

https://oauth.vk.com/authorize?client_id=CLIENT_ID&display=page&scope=CLIENT_ACCESS&response_type=token&v=5.92&state=123456

CLIENT_ID - id вашего standalone приложения. Получить

CLIENT_ACCESS - доступы которые надо расшарить приложению по умолчанию (photos,groups,wall). Подробнее

v - версия api (ставим самую свежую)

Забираем TOKEN из поля (как указано выше) и вставляем в $CONF_TOKEN.

✨Пользуемся✨

Интеграция с CRON

Так как у VK ограничение на 50 постов в день, то посты нужно делать примерно раз в полчаса

Даем доступ на выполнение в bash

chmod 771 index.bash

Заводим линуксовский будильник CRON

sudo crontab -e

И записываем в конец

*/20 * * * * /Path_To_Your_File/index.bash

Узнать путь можно при помощи:

pwd

После настройки проверяйте вашу группу VK в ней должны пойти посты

grabber-php-vk's People

Contributors

mayamee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.