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.
- NodeJS
- Python 3.0+
- In your terminal, in the "social" directory, type:
$ npm install
- Run the node server through your terminal by using the "share.js" file.
- Import this library in your program by typing:
from social.share import *
- Instantiate the social media class name. Eg:-
twitter = Twitter()
- Authorize the app by accessing the "authorize()" method in social media class. Eg:-
facebook = Facebook() facebook.authorize()
- Use "<social media instance>.postImage(<image path>)" to post images. Eg:-
facbook.postImage("./sample_image.jpg")
- Use "<social media instance>.postVideo(<video path>)" to post videos. Eg:-
twitter.postVideo("./sample_video.mp4")