An AWS Serverless Application that scrapes the guardian api and posts film reviews to trakt.
Documentation for Guardian API is found here: https://open-platform.theguardian.com/documentation/
Documentation for Trakt API is found here: https://trakt.docs.apiary.io/
Access and refresh tokens for Trakt need to be rotated. These tokens are stored in AWS Secrets Manager and are rotated automatically through the TraktTokenRotator lambda function.
In the event that the refresh token is stale the tokens will have to be manually regenerated.
To do this run python create_trakt_tokens.py and follow on screen instructions.
Code for the token rotator exists within the token_rotator directory and should be built and deployed independently of the main repository code with it's own virtual environment.
cd token_rotator sam build - .aws/template.yaml sam deploy --guided