Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download youtube-dl extracted links with curl #25558

Closed
TheGr33k opened this issue Jun 6, 2020 · 1 comment
Closed

Download youtube-dl extracted links with curl #25558

TheGr33k opened this issue Jun 6, 2020 · 1 comment
Labels

Comments

@TheGr33k
Copy link

@TheGr33k TheGr33k commented Jun 6, 2020

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

I am getting an xhamster video 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-14090634
Output:
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

Now 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"

HTTP/2 403
server: ucdn/1.16.1
date: Sat, 06 Jun 2020 06:33:54 GMT
content-type: text/html
content-length: 554
x-ureq-id: PYMqMNZBGw/LQ5t5RiAeHC3ZgXMp/SDvjpZYoec8iOyadR/7iX6gI0QPIsqfeRwA6GQV
x-served-from: origin
access-control-allow-origin: *
access-control-allow-methods: HEAD, GET, OPTIONS

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.