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.
Find a file
2025-05-21 01:52:50 +00:00
_already_sent change _already_sent folder name 2025-05-21 01:52:50 +00:00
.gitignore remove composer.lock 2025-05-21 00:48:56 +00:00
add_to_fedilist.php first 2025-05-21 00:44:19 +00:00
composer.json first 2025-05-21 00:44:19 +00:00
fedi_slurp.php change _already_sent folder name 2025-05-21 01:52:50 +00:00
LICENSE Initial commit 2025-05-20 21:17:41 +00:00
README.md Update README.md 2025-05-21 01:29:40 +00:00
update_google_token.php renamed scripts 2025-05-21 01:26:11 +00:00

Fedi Link Fetcher

A pair of PHP scripts that extract links from your Mastodon / snac bookmarks and add them to:

  • Read Later in Readeck (simple API token)
  • Watch Later in YouTube Playlist (Google oAUTH API)

1. Getting a Readeck token

In Web UI:

  • Settings, API tokens, Create API Token
  • Check Bookmarks Read + Write

Save it as:

/_credentials/token.json

2. Getting a Youtube API token

  • 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 it as:

/_credentials/client_secret.json

3. Add your Google account as a test user

  • Go to Google Cloud Console > OAuth consent screen
  • ~> Audience
  • Under “Test users”
  • Add your Google email for your Youtube account

4. Download Google API Client with PHP Composer

composer require google/apiclient:^2.0

5. Run command to get (or recreate) a token and create FediList playlist

./update_google_token.php
*/5 * * * * /home/snac/fedi_slurp/fedi_slurp.php > /home/snac/logs/fedi_slurp.log 2>&1