Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whyisjake/youtube-to-wordpress-xml
Generate WordPress XML exports from YouTube playlists.
https://github.com/whyisjake/youtube-to-wordpress-xml
Last synced: 18 days ago
JSON representation
Generate WordPress XML exports from YouTube playlists.
- Host: GitHub
- URL: https://github.com/whyisjake/youtube-to-wordpress-xml
- Owner: whyisjake
- Created: 2013-01-22T21:03:09.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-23T18:14:31.000Z (almost 12 years ago)
- Last Synced: 2024-11-09T03:52:20.627Z (2 months ago)
- Language: PHP
- Size: 133 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# YouTube to WordPress XML
__Generate WordPress XML exports from YouTube playlists.__
## Usage
Using cURL, you can grab the results of the page.
curl -O "http://localhost:8888/github/YouTube%20to%20WordPress%20XML/?username=whyisjake&start=1&offset=1"
There are three query parameters to add, `offset`, `username`, and `start`.
### Query String Parameters
1. `offset`: How far to offset the feed. Ideally, you would want to start at 1, and then go from there.
2. `username`: Username of the YouTube feed that you want to retrieve.
3. `start`: With start, this is the start index of the feed. The feed will grab 50 videos at a time, so if you have 50 videos in a playlist, you would offset this number by 50 on the next pass.## Batch Usage
If you want to pull down a lot of playlists at the same time, you can use the following method. Adding the numbers in the curly braces will loop through each option, getting all of the playlists. The second flag will name each file videos-export-#.xml.
curl "http://localhost:8888/github/YouTube%20to%20WordPress%20XML/?username=makemagazine&start=1&offset={1,2,3,4,5,6,7,8,9,10}" -o "videos-export-#1.xml"