A bunch of scripts to fetch your Mastodon / snac bookmarks (using Mastodon API) and save them in your Readeck account for reading later or Youtube account for watching later.
vendor | ||
.gitignore | ||
add_to_fedilist.php | ||
composer.json | ||
composer.lock | ||
create_fedilist.php | ||
fedi_slurp.php | ||
LICENSE | ||
README.md |
Fedi Link Fetcher
A pair of PHP scripts that extract links from your Mastodon / snac bookmarks and add them to:
- YouTube Playlist (Google oAUTH API)
- Readeck (simple API token)
TODO instructions readeck API
how to get tokeb in web ui
TODO isntructions Youtube PlayList
1. Go to the Google Cloud Console:
• Project > APIs & Services > Credentials
create oauth client ID for TV and limited INPUT • Download the OAuth 2.0 Client ID JSON file
save as /home/snac/youtube_list/client_secret.json
Option 1: Add your Google account as a test user 1. Go to Google Cloud Console > OAuth consent screen ~> Audience 2. Scroll to “Test users” 3. Add your Google email (e.g. jacques.lema@gmail.com)
composer require google/apiclient:^2.0