Giter Site home page Giter Site logo

projecturmary's Introduction

ProjectUrmary

This project uses VK API to help managing community in social network VK (https://vk.com). In this project I implemented next functionalities:

  1. Publishing anonymously or not suggested posts from community members depending on their preference
  2. Automatically posting Birthday wishes to community wall.
  3. Extracting relative news from local news web site and publish them om community wall every day. (Web scraping)
  4. Chat bot Eliza linked to community messages with ability for users to start conversation with chat bot by using specific key words.
  5. Repost news from popular communities
  6. Sending invites to the users who are members of different communities or public pages.

All these implementation was deployed to AWS server with S3 storage and scheduled to execute via Cron jobs in a certain interval. Unfortunately, if using S3 to write and read all data free tier is not enough. So, at this moment I decided to use simple text files to store necessary data such as list of already published new, posts, invites etc.

Prerequisites

Python 3.5
AWS
S3 (optional)
Access Token

You need to receive access tokens (community token and user token) to gain access to VK API and all functionalities (https://vk.com/dev/access_token). Cretae file tokens.txt and then save tokens in file (IMPORTANT: DO NOT share this information with public).

# tokens.txt file format
community_token, --COMMUNITY TOKEN--
user_token, --USER TOKEN--

To work with community events in real time you need Bots Long Poll API. Instructions: https://vk.com/dev/bots_longpoll

Project structure and examples

  • ELIZA.py
# Example of simple use
eliza = ElizaBOT() # initialize object
response = eliza.response(inpot_text)
  • EventResponse.py - Manages all new events happening in the community (messages, suggested posts)

  • MemberBirthDay.py - Makes posts in community wall wishing Happy Birthday.

Authors

projecturmary's People

Watchers

 avatar  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.