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.
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"
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"
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"
Use pip
to install the project requirements as:
pip install -r requirements.txt
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.
MIT