zhenzhiwang/HumanVid

download scripts

Closed this issue · 5 comments

Hi authors.
could you guys release some scripts for downloading the url, since there is 'Status code: 404' when i try to download via below code.

import requests

url='https://www.pexels.com/video/7080900/download'
response = requests.get(url)
print(response.status_code)

I have the same promblem, get response of 404 or 403.

It seems that pexels.com is changing their response to apis. My script also fails today. However, it still worked last week. The only thing we can do is waiting for future updates from the team of pexels.com.

Updates: I find that pexels.com is not denying download from url. They just changed the url address. The old url address just need the information of video id with a 'download', yet it didn't work since yesterday. New urls are specific urls to videos with resolution information. For example, for video 2795749, the old url is https://www.pexels.com/video/2795749/download, and the new url is https://videos.pexels.com/video-files/2795749/2795749-{resolution}.mp4, where resolution is file names for a specific resolution, e.g., uhd_3840_2160_25fps.

A little problem with the url conversion is that we could only guess the resolution information. I will try to finish the url conversion today for most of videos in the released urls.

The new urls are uploaded in the google drive. @wangqiang9 @JoJoistheBestOne
The total number of videos is reduced by about 150*2 due to unrecognizable new urls.