Code Monkey home page Code Monkey logo

spotify_download_bot's Introduction

Spotify download bot

A telegram bot for downloading spotify playlist songs on telegram. The bot works by getting list of song names from spotify and find them on youtube.

How to setup on heroku

  1. Create a telegram bot using bot father
  2. Create account on heroku.com
  3. Create a new application on heroku
  4. fork this repository
  • To deploy bot on heroku there are two methods (CLI and Web), we use the heroku.com way:
  1. In your application on heroku go to deploy tab and choose Github on deployment method
  2. Select this repository you forked there and choose deploy from master option
  3. Then go to settings tab on heroku and add two vars to config vars:
  • URL: Base URL of the application you created on Heroku
  • TOKEN: your telegram bot token)
  1. install heroku CLI and run the command heroku stack:set container -a APP_NAME (APP_NAME is name of the app you choose when creating heroku application) then login to your account for change to happen
  2. In heroku from deploy section scroll down to Manual deploy and press deploy branch for master branch

Setup everywhere else

  1. use the Dockerfile for deployment method
  2. Set the TOKEN and URL in environment variables

Local Development

To run the bot on local machine you need a way to expose a web url from your machine, this can be done with tools like ngrok.io. After setting up the URL run the bot and provide the settings

python bot.py --token {your-token} --url {ngrok-url} --port 8443

spotify_download_bot's People

Contributors

busybox11 avatar calo77103 avatar dependabot[bot] avatar glyphack avatar kannan5678900 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.