Giter Site home page Giter Site logo

vk_comic_poster's Introduction

VK comic poster

Post comics to the wall of VK public page automatically!

How to prepare:

  1. Make sure Python installed on your PC - you can get it from official website.

  2. Install libraries with pip:

    pip3 install -r requirements.txt
    
  3. If you need to create a new VK group, this can be done at the community creation page. Skip this step if the group has already been created.

  4. Find out the group ID using a special service. Create .env file in directory with main.py file (use Notepad++) and add the string

    VK_GROUP_ID='your_group_id'
    

    with group ID instead of value in quotes. Here and further quotes must be removed.

  5. Create an application on the VK page for developers using the "My Apps" button at the top of the page. Select the standalone application type.

  6. On the My Apps page, click the "Manage" button and copy the application ID from the address bar. Save the ID in the .env file on a separate line like

    VK_APP_CLIENT_ID='application_id'
    
  7. Following the instructions on Implict Flow, get an access_token to access the VK API. Set the scope parameter as follows: scope = photos, groups, wall, offline. The redirect_uri parameter should be removed from the request. As a result, you will get an access_token looks like 533bacf**********06a3 in the browser address bar. Add it to your .env file as a line:

    VK_ACCESS_TOKEN='your_access_token'
    

How to use:

Run main.py with console. Use cd command if you need to change directory:

D:\>cd D:\learning\python\api_services\vk_comic_poster
D:\learning\python\api_services\vk_comic_poster>python main.py

Available options

You can change the path for downloaded images using the console. Get available options with -h argument:

D:\learning\python\api_services\vk_comic_poster>python main.py -h
usage: main.py [-h] [-c COUNT] [-dir DIRECTORY]

Загрузка комиксов xkcd на страницу Вконтакте

optional arguments:
  -h, --help            show this help message and exit
  -dir DIRECTORY, --directory DIRECTORY
                        Путь к папке для скачанных картинок

vk_comic_poster's People

Contributors

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