cipherLord / C-3PO

The ultimate bot to organise all LTTKGP data

Home Page:https://www.facebook.com/groups/lttkgp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C-3PO (WIP)

When he's not flying around with the Solos and Skywalkers on the Millenium Falcon, C-3PO decided to help LTTKGP out with managing the huge amount of songs being posted each day and organising them in a database (such a nice guy!). Known for his loving nature, he feels it'd be so much better to appreciate the top OPs on the group with weekly highlights. He also promises to use his supreme knowledge of Machine Learning to analyze trends and give music recommendations.

Setup

Facebook Graph API

You will need 'User access tokens' to work with the Graph API. You can find more information here: Graph API documentation

As explained in the link above, create a new Facebook app (My Apps -> Add a new app) and generate user access tokens through the Graph API explorer.

Once done, create a file in repo root called .env with contents as follows:

FB_SHORT_ACCESS_TOKEN="xxxx"
FB_APP_ID="xxxx"
FB_APP_SECRET="xxxx"

Spotify's Web API

You will also need Spotify authorization for fetching song metadata. The prodcude is very straightforward. Register a new application here: Spotify for Developers

That will give you a unique client ID and client secret key to use in authorization flows. Save these to the above created .env files as follows:

SPOTIFY_CLIENT_ID="xxxx"
SPOTIFY_CLIENT_SECRET="xxxx"

Musixmatch API

Register a new application here: Musixmatch for Developers

This will give you a unique api key to use in authorization flows. Save these to the above created .env files as follows:

MUSIXMATCH_API_KEY="xxxx"

Python requirements

Use pip to install the project requirements as:

pip install -r requirements.txt

Contributing

Contributions are always welcome. Your contributions could either be creating new features, fixing bugs or improving documentation and examples. Find more detailed information in CONTRIBUTING.md.

License

MIT

About

The ultimate bot to organise all LTTKGP data

https://www.facebook.com/groups/lttkgp/

License:MIT License


Languages

Language:Python 98.5%Language:Dockerfile 1.2%Language:Shell 0.3%