Open rsfinlayson opened 3 years ago
@rsfinlayson It would be appreciated if you could share more video links.
@rsfinlayson It would be appreciated if you could share more video links.
Sorry, but that's the only one I saw.
Did some basic investigation of the URL supplied by @rsfinlayson and here are my findings:
/v/
containing the ID (60aadcf491e5e200248ec034)undefined
) in a script
tag that's assigned to window.__data
r"<script charSet=\"UTF-8\">window\.__data=(.*);</script>"
root['orders']['orders'][<id>]['mediaUrl']
root['orders']['orders'][<id>]['nakedMediaUrl']
root['orders']['orders'][<id>]
include:
<title data-rh="true">Cameo - Cameo by Natasha Henstridge for Adam Carolla</title>
Don't know if I'll make the extractor myself, but I hope I am of help to anyone that does. Should be pretty easy if you can figure out an easy way to drag out that JSON blob.
I've also gathered more URLs. Seeing how Cameo requests seemingly expire, making test cases will probably be pointless, but who cares:
We can also get multiple orders made by a user at once and create a playlist. We'll be using https://www.cameo.com/natashahenstridge as our test case.
root['orders']['orders']
and parse them the same way we would a video pageWe can also get a lot of information about the user account by looking at the only key in root['users']['users']
which can be retrieved from root['users']['selectedUserId']
:
Checklist
Example URLs
Description
Plays in Firefox. youtube-dl returns a HTTP Error 403: Forbidden