Giter Site home page Giter Site logo

chandratop / twitter-song-finder-bot Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 59.35 MB

A Twitter bot account that will find the song/music in a video for you.

Python 100.00%
twitter-api twitter-bot acrcloud music-fingerprinting music-recognition

twitter-song-finder-bot's Introduction

Twitter Video Song Finder Bot

Ever been in a situation where you saw a video with a banger song but didn't know its name? Just @VideoSongFinder and we'll reply back with the song name ๐Ÿ˜ƒ

Note: This has been tested on Linux/Debian | Ubuntu 20.04 LTS

Setup

Requirements and Heroku runtime:

  • Python>=3.8.1
  • pip3 ( use pip for python3 if it supports your case )

To clone the repository use the statement below or any other statement of choice

git clone https://github.com/chandratop/twitter-song-finder-bot.git

In the project repository type the following in the terminal to install all the necessary dependencies

pip3 install -r requirements.txt

Get API keys

Twitter API

Register for a Twitter developer account. Follow the steps to set up your Bot account and get your API keys.

ACRCloud API

Register for a ACRCloud Account. Follow the steps to set it up and get your API keys.


Set API keys

  • Rename the .env_sample file to .env
  • Replace your-key-here the necessary API keys
TWITTER_CONSUMER_KEY=your-key-here
TWITTER_CONSUMER_SECRET=your-key-here
TWITTER_ACCESS_KEY=your-key-here
TWITTER_ACCESS_SECRET=your-key-here
ACR_HOST_NAME=your-key-here
ACR_ACCESS_KEY=your-key-here
ACR_ACCESS_SECRET=your-key-here

Minor adjustments ( Temporary fix )

Create a fallback tweet and get the tweet-id from the url.

https://twitter.com/user-name/tweet-id

Go to bot.py and replace the following line as follows.

temporary.write("1267382918214643713")

to

temporary.write("tweet-id")

twitter-song-finder-bot's People

Contributors

chandratop avatar

Stargazers

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