A bash script for scraping redtube videos metadata in json.
install -m 755 redtube-scraper /usr/bin
Here's example of a video.
It works as recursive spider getting urls from every page starting from URL, and saving results in files named by their id.
redtube-scraper DIR URL