Julio Biason
2 years ago
5 changed files with 114 additions and 11 deletions
@ -0,0 +1,33 @@ |
|||||||
|
# Deezer Capturer |
||||||
|
|
||||||
|
Deezer Capturer captures songs played on Deezer. |
||||||
|
|
||||||
|
[Deezer API](https://developers.deezer.com/api) is available. We need to grab |
||||||
|
the user history (`https://api.deezer.com/user/4812817742/history`) from the |
||||||
|
user. |
||||||
|
|
||||||
|
## Configuration |
||||||
|
|
||||||
|
Configuration requires the OAuth token. |
||||||
|
|
||||||
|
## Internals |
||||||
|
|
||||||
|
We need to keep a list of played songs, and compare with the new one. |
||||||
|
|
||||||
|
Need to find the history output, as the API explorer does not show one example. |
||||||
|
|
||||||
|
We could keep: |
||||||
|
|
||||||
|
- `id`: ID or timestamp of the history element. Elements earlier than the most |
||||||
|
recent one can be ignored. |
||||||
|
- `artist`: Name of the artist. |
||||||
|
- `song`: Name of the song. |
||||||
|
- `album`: Album of the song. |
||||||
|
|
||||||
|
## Output |
||||||
|
|
||||||
|
``` |
||||||
|
{% for song in new_songs %} |
||||||
|
Played {{ song.name }} by {{ song.artist }}. |
||||||
|
{% endfor %} |
||||||
|
``` |
@ -0,0 +1,25 @@ |
|||||||
|
# Netflix Capturer |
||||||
|
|
||||||
|
Steam Capturer captures watched movies and series on Netflix. |
||||||
|
|
||||||
|
There is no API. We need to scrap the user account page to find that out. |
||||||
|
|
||||||
|
## Configuration |
||||||
|
|
||||||
|
Sadly, we may need username and password in the configuration. |
||||||
|
|
||||||
|
## Internals |
||||||
|
|
||||||
|
We need to keep a list of watched content: |
||||||
|
|
||||||
|
- `id` (maybe): ID of the movie/episode. |
||||||
|
- `name`: Name of the movie. |
||||||
|
- `watch_date`: Date the movie/episode was watched. |
||||||
|
|
||||||
|
## Output |
||||||
|
|
||||||
|
``` |
||||||
|
{% for content in new_content %} |
||||||
|
Watched {{ content.name }}. |
||||||
|
{% endfor %} |
||||||
|
``` |
@ -0,0 +1,33 @@ |
|||||||
|
# Steam Capturer |
||||||
|
|
||||||
|
Steam Capturer captures the daily plays on Steam games. Achievements could also |
||||||
|
be captured. |
||||||
|
|
||||||
|
[Steam API documentation](https://steamcommunity.com/dev). We could capture |
||||||
|
"Recently Played Games" and "Get Player Achievements". |
||||||
|
|
||||||
|
## Configuration |
||||||
|
|
||||||
|
The only required configuration is the Steam ID. |
||||||
|
|
||||||
|
## Internals |
||||||
|
|
||||||
|
We need to keep, locally: |
||||||
|
|
||||||
|
- Current list of achievements: We compare this with the new list and find out |
||||||
|
the new ones. |
||||||
|
- Time in each game "recently played", or some sort of "time played" bootstrap |
||||||
|
method. We compare this with the Recently Played list to produce a list of |
||||||
|
Time played. |
||||||
|
|
||||||
|
## Output |
||||||
|
|
||||||
|
``` |
||||||
|
{% for game in played_games %} |
||||||
|
Played {{ game.name }} for {{ game.time }}. |
||||||
|
{% endfor %} |
||||||
|
|
||||||
|
{% for achievement in new_achievements %} |
||||||
|
Completed {{ achievement.name }} in {{ achievement.game }}. |
||||||
|
{% endfor %} |
||||||
|
``` |
Loading…
Reference in new issue