Giter VIP home page Giter VIP logo

spotgram's Introduction

spotgram

Clone

You can either download the zip file or clone the repo using command bellow:

git clone https://github.com/garjania/spotgram.git

Telegram Requirements

First you need a telegram bot for this code to work. For that create a new bot at @BotFather by entering command /newbot over there. After the steps are finished, the BotFather will give you a bot token. Copy that token and paste it in config.cfg file in front of tel_token .

The next requirement is creating a dummy channel! don't ask why. Just create a dummy channel in your telegram and put the id of the channel without @ sign in front of dummy_channel in config.cfg. Then again, put the id of target channel, which is the channel you want to create a spotify playlist of, without @ in front of target_channel.

Next set the bot you just created as the adminstor of the dummy channel and the target channel. And it's all done for Telegram.

Spotify Requirements

Go to this link and request a token by clicking on get token button. Then copy the token (remember to copy all of it) and paste it in front of spot_token.

And finally create an spotify playlist in your account and set the playlist_id in config.cfg as the id of the playlist you just created. To obtain the playlist id you just need to right click on your playlist go to Share > Copy link to playlist. the copied link should look like something like this : https://open.spotify.com/playlist/1234?si=567. Here 1234 is the playlist id.

Running the Program

For running enter the command bellow in the code directory

python main.py

or maybe

python3 main.py

spotgram's People

Contributors

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