Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sebadorn/yt-newsubscriptionvideos
Creates an RSS feed of all recently uploaded videos of channels you are subscribed to.
https://github.com/sebadorn/yt-newsubscriptionvideos
php rss-feed youtube-api
Last synced: 2 days ago
JSON representation
Creates an RSS feed of all recently uploaded videos of channels you are subscribed to.
- Host: GitHub
- URL: https://github.com/sebadorn/yt-newsubscriptionvideos
- Owner: sebadorn
- Created: 2014-09-03T23:02:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-22T21:24:57.000Z (about 8 years ago)
- Last Synced: 2023-03-23T03:07:31.851Z (over 1 year ago)
- Topics: php, rss-feed, youtube-api
- Language: PHP
- Size: 201 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How does it work?
In order to use the YouTube API and access your account, an OAuth authentication is required. This is done one time and the received refresh token saved in a file on your server.
The OAuth process also requires a client ID (`OAUTH_CLIENTID`) and secret (`OAUTH_CLIENTSECRET`) (see `config.php`). Please get your own key by creating a new project on [Google Console](https://console.developers.google.com/).
## YouTube
The problem with the YouTube API v3 is, that it is not possible to only request all new subscription videos. This was possible in the past, directly as RSS feed.
What I'm doing now, is request all activities which includes all subscription videos and filter by upload. But since a request is limited to maximal 50 results at a time, a lot of *not-video-upload-activities* may push out video uploads.
To counter this, you can go to [youtube.com/subscription_manager](https://www.youtube.com/subscription_manager), select all, and choose to only have uploads shown in your activity feed.
## Google Developers Console
1. Create a new project, for example call it *yt-nsv*.
1. In **APIs & auth > APIs** enable **YouTube Data API v3**. Disable everything else.
1. In **APIs & auth > Credentials** create a new Client ID for a web application.## Trouble shooting
* Should the application fail to create the file specified by `OAUTH_REFRESHTOKEN_FILE` (see `config.php`), just create it yourself and set its permissions to 666.
## Limits
* Only for 1 user.