Giter Club home page Giter Club logo

social-media-upload's Introduction

Social

Note: The current library runs on Node/Express server with the possibility of porting to Django in the future. Other Social Media platforms soon to come. Contributions are always welcome.

Required

  1. NodeJS
  2. Python 3.0+

Usage

  1. In your terminal, in the "social" directory, type: $ npm install

  2. Run the node server through your terminal by using the "share.js" file.

  3. Import this library in your program by typing:
    from social.share import *
  4. Instantiate the social media class name. Eg:- twitter = Twitter()

  5. Authorize the app by accessing the "authorize()" method in social media class. Eg:-
    facebook = Facebook()
    facebook.authorize()
    
  6. Use "<social media instance>.postImage(<image path>)" to post images. Eg:- facbook.postImage("./sample_image.jpg")

  7. Use "<social media instance>.postVideo(<video path>)" to post videos. Eg:- twitter.postVideo("./sample_video.mp4")

Example file "example.py" is included with sample image to experiment.

social-media-upload's People

Contributors

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