Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Checklist
Question
I am getting an
xhamstervideo direct link and then i am trying to download with curl.However i am getting 403 forbidden but youtube-dl can download the video.What am i missing?youtube-dl --source-address 51.81.249.34 -g -f mp4-720p https://xhamster.com/videos/amateureuro-spanish-teen-lily-hall-rides-daddy-on-auditions-14090634Output:
https://19-14.b.cdn13.com/014/090/634/720p.h264.mp4?cdn_creation_time=1591423200&cdn_ttl=14400&cdn_bw=312k&cdn_bw_fs=484k&cdn_cv_data=51.81.249.34-dvp&cdn_hash=62180286e01b91ce2642d112b3d922cfNow i try to download the video with curl
curl --interface 51.81.249.34 --user-agent "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36" -I "https://19-14.b.cdn13.com/014/090/634/720p.h264.mp4?cdn_creation_time=1591423200&cdn_ttl=14400&cdn_bw=312k&cdn_bw_fs=484k&cdn_cv_data=51.81.249.34-dvp&cdn_hash=62180286e01b91ce2642d112b3d922cf"If you check example above , you will see that i kept the same IP address and i even tried to add a useragent but i still get 403 forbidden.