This simple script (GitHub Repo) can create a new post in your Wordpress using the data found in a Youtube url.
Technologies used
JavaScript Libraries Used:
Be sure to configure your Wordpress with Basic Auth Plugin (And .htaccess config) first before using the Rest API.
Windows
This repo contains a bundled executable with everything you need (nodejs) to execute the scripts with just a double click. See Releases.
Other OS
You can execute the command
node index.js "youtube-url1 youtube-url2 youtube-url-n"
Considerations
The script will search the Youtube url and use the first match. Sometimes Youtube does not return the correct video even when using the full url. Be sure to test your search queries in Youtube to create a query that returns your video as the first result.
Top comments (0)