I am trying to download videos from a site, which requires using R to extract the download url (with “get_file” in the url) that resides on each video url.
Example:
- “video url”: https://www.example.com/video/%5Bstring1%5D
- “download url” (residing on the video page): https://www.example.com/get_file/%5Bstring2%5D
There is 1 issue: The “download url” (ie, with “get_file” in it) only becomes available on the “video url” if the account to the domain is signed in.
I want the R or Python code to read a list of video urls (.txt), then produce a list of download urls (e.g., with “get_file” in it).
New contributor
Sean Cody is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.