livestreamer icon indicating copy to clipboard operation
livestreamer copied to clipboard

403: client error forbidden. Does someone have a solution?

Open Peterspapan opened this issue 7 years ago • 3 comments

Dear community, I have spent the whole day struggling for a solution to download a HLS stream. I have so far tried several tools with very limited success. I have read other posts about similar issues but the proposed solutions were of no help. OK to put it short here is the URL of a video I want to download : http://watchers.to/n1l0yov6tl6z.html I was first using FireFfox (on win7) with the add-on "HLS playlist detector" installed and working. I have configured the add on to retrieve the play list in the proper format. HLS detects 2 playlists. Here are the commands:

"D:\Video\Livestreamer\livestreamer.exe" --http-header "User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0" --http-cookie "lang=1; _ga=GA1.2.702294065.1504901079; _gid=GA1.2.151708328.1504901079" -o "C:\Users\Peter Spa Pan\Downloads\master.ts" "hls://http://file26.watchers.to/hls/,f4c6lo34s2krkhrbon2p3anzqdzb3pjjcttgnbjnh4hyi3buqp7k3blarhoa,.urlset/master.m3u8" best

and

"D:\Video\Livestreamer\livestreamer.exe" --http-header "User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0" --http-cookie "lang=1; _ga=GA1.2.702294065.1504901079; _gid=GA1.2.151708328.1504901079" -o "C:\Users\Peter Spa Pan\Downloads\index-v1-a1.ts" "hls://http://file26.watchers.to/hls/f4c6lo34s2krkhrbon2p3anzqdzb3pjjcttgnbjnh4hyi3buqp7k3blarhoa/index-v1-a1.m3u8" best

The file "index-v1-a1.m3u8" points to the individual chucks with the following format #EXTM3U #EXT-X-TARGETDURATION:20 #EXT-X-ALLOW-CACHE:YES #EXT-X-PLAYLIST-TYPE:VOD #EXT-X-VERSION:3 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:22.417, http://file26.watchers.to/hls/f4c6lo34s2krkhrbon2p3anzqdzb3pjjcttgnbjnh4hyi3buqp7b743arhoa/seg-1-v1-a1.ts #EXTINF:22.250, http://file26.watchers.to/hls/f4c6lo34s2krkhrbon2p3anzqdzb3pjjcttgnbjnh4hyi3buqp7b743arhoa/seg-2-v1-a1.ts #EXTINF:18.167, http://file26.watchers.to/hls/f4c6lo34s2krkhrbon2p3anzqdzb3pjjcttgnbjnh4hyi3buqp7b743arhoa/seg-3-v1-a1.ts #EXTINF:18.667, ....................etc.....

BUT. There is no way to move Livestreamer to download the stream. Always the same answer 403. Forbidden

Imho it has to do with the timestamps in the cookies, but Livestreamer is supposed to send the appropriate information the the server.

I would appreciate any hint leading toward a solution. Thank you, guys!

Peterspapan avatar Sep 09 '17 17:09 Peterspapan

@Peterspapan

This is a friendly reminder that livestreamer has been abandoned by @chrippa

Please use the fork of livestreamer called streamlink located here: https://github.com/streamlink/streamlink

cdrage avatar Sep 12 '17 18:09 cdrage

Note that a 403 error usually means that you are indeed hitting a timeout/expiration issue.


From: Peterspapan [email protected] Sent: Saturday, September 9, 2017 1:47 PM To: chrippa/livestreamer Cc: Subscribed Subject: [chrippa/livestreamer] 403: client error forbidden. Does someone have a solution? (#1626)

Dear community, I have spent the whole day struggling for a solution to download a HLS stream. I have so far tried several tools with very limited success. I have read other posts about similar issues but the proposed solutions were of no help. OK to put it short here is the URL of a video I want to download : http://watchers.to/n1l0yov6tl6z.html I was first using FireFfox (on win7) with the add-on "HLS playlist detector" installed and working. I have configured the add on to retrieve the play list in the proper format. HLS detects 2 playlists. Here are the commands:

"D:\Video\Livestreamer\livestreamer.exe" --http-header "User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0" --http-cookie "lang=1; _ga=GA1.2.702294065.1504901079; _gid=GA1.2.151708328.1504901079" -o "C:\Users\Peter Spa Pan\Downloads\master.ts" "hls://http://file26.watchers.to/hls/,f4c6lo34s2krkhrbon2p3anzqdzb3pjjcttgnbjnh4hyi3buqp7k3blarhoa,.urlset/master.m3u8" best

and

"D:\Video\Livestreamer\livestreamer.exe" --http-header "User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0" --http-cookie "lang=1; _ga=GA1.2.702294065.1504901079; _gid=GA1.2.151708328.1504901079" -o "C:\Users\Peter Spa Pan\Downloads\index-v1-a1.ts" "hls://http://file26.watchers.to/hls/f4c6lo34s2krkhrbon2p3anzqdzb3pjjcttgnbjnh4hyi3buqp7k3blarhoa/index-v1-a1.m3u8" best

The file "index-v1-a1.m3u8" points to the individual chucks with the following format #EXTM3U #EXT-X-TARGETDURATION:20 #EXT-X-ALLOW-CACHE:YES #EXT-X-PLAYLIST-TYPE:VOD #EXT-X-VERSION:3 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:22.417, http://file26.watchers.to/hls/f4c6lo34s2krkhrbon2p3anzqdzb3pjjcttgnbjnh4hyi3buqp7b743arhoa/seg-1-v1-a1.ts #EXTINF:22.250, http://file26.watchers.to/hls/f4c6lo34s2krkhrbon2p3anzqdzb3pjjcttgnbjnh4hyi3buqp7b743arhoa/seg-2-v1-a1.ts #EXTINF:18.167, http://file26.watchers.to/hls/f4c6lo34s2krkhrbon2p3anzqdzb3pjjcttgnbjnh4hyi3buqp7b743arhoa/seg-3-v1-a1.ts #EXTINF:18.667, ....................etc.....

BUT. There is no way to move Livestreamer to download the stream. Always the same answer 403. Forbidden

Imho it has to do with the timestamps in the cookies, but Livestreamer is supposed to send the appropriate information the the server.

I would appreciate any hint leading toward a solution. Thank you, guys!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/chrippa/livestreamer/issues/1626, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AESJ1q4CNsYshw55fJvZa4--ffTAWtffks5sgs9JgaJpZM4PSEPc.

scottbernstein-zz avatar Sep 12 '17 18:09 scottbernstein-zz

Thank you. I have spent a couple of hours checking the access protocols and I come now to the conclusion that referrer, cookies and the user-agent play a big role in the acceptance of a download request. If there is a flaw in the nature of headers and/or timings you haven't access. If your browser can download the stream you need livestream to mimick perfectly the behaviour of the browser. Otherwise finito 403. Fortunately the mentioned server also stored the movie as a more conventional stream, no chunks, and it was therefore easier to download it with a common download manager.

On 12 Sep 2017 8:46 p.m., "scottbernstein" [email protected] wrote:

Note that a 403 error usually means that you are indeed hitting a timeout/expiration issue.


From: Peterspapan [email protected] Sent: Saturday, September 9, 2017 1:47 PM To: chrippa/livestreamer Cc: Subscribed Subject: [chrippa/livestreamer] 403: client error forbidden. Does someone have a solution? (#1626)

Dear community, I have spent the whole day struggling for a solution to download a HLS stream. I have so far tried several tools with very limited success. I have read other posts about similar issues but the proposed solutions were of no help. OK to put it short here is the URL of a video I want to download : http://watchers.to/n1l0yov6tl6z.html I was first using FireFfox (on win7) with the add-on "HLS playlist detector" installed and working. I have configured the add on to retrieve the play list in the proper format. HLS detects 2 playlists. Here are the commands:

"D:\Video\Livestreamer\livestreamer.exe" --http-header "User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0" --http-cookie "lang=1; _ga=GA1.2.702294065.1504901079; _gid=GA1.2.151708328.1504901079" -o "C:\Users\Peter Spa Pan\Downloads\master.ts" "hls://http://file26.watchers.to/hls/, f4c6lo34s2krkhrbon2p3anzqdzb3pjjcttgnbjnh4hyi3buqp7k3blarhoa ,.urlset/master.m3u8" best

and

"D:\Video\Livestreamer\livestreamer.exe" --http-header "User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0" --http-cookie "lang=1; _ga=GA1.2.702294065.1504901079; _gid=GA1.2.151708328.1504901079" -o "C:\Users\Peter Spa Pan\Downloads\index-v1-a1.ts" "hls://http://file26.watchers.to/hls/ f4c6lo34s2krkhrbon2p3anzqdzb3pjjcttgnbjnh4hyi3buqp7k3blarhoa /index-v1-a1.m3u8" best

The file "index-v1-a1.m3u8" points to the individual chucks with the following format #EXTM3U #EXT-X-TARGETDURATION:20 #EXT-X-ALLOW-CACHE:YES #EXT-X-PLAYLIST-TYPE:VOD #EXT-X-VERSION:3 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:22.417, http://file26.watchers.to/hls/f4c6lo34s2krkhrbon2p3anzqdzb3p jjcttgnbjnh4hyi3buqp7b743arhoa/seg-1-v1-a1.ts #EXTINF:22.250, http://file26.watchers.to/hls/f4c6lo34s2krkhrbon2p3anzqdzb3p jjcttgnbjnh4hyi3buqp7b743arhoa/seg-2-v1-a1.ts #EXTINF:18.167, http://file26.watchers.to/hls/f4c6lo34s2krkhrbon2p3anzqdzb3p jjcttgnbjnh4hyi3buqp7b743arhoa/seg-3-v1-a1.ts #EXTINF:18.667, ....................etc.....

BUT. There is no way to move Livestreamer to download the stream. Always the same answer 403. Forbidden

Imho it has to do with the timestamps in the cookies, but Livestreamer is supposed to send the appropriate information the the server.

I would appreciate any hint leading toward a solution. Thank you, guys!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<https://github.com/ chrippa/livestreamer/issues/1626>, or mute the thread<https://github.com/ notifications/unsubscribe-auth/AESJ1q4CNsYshw55fJvZa4-- ffTAWtffks5sgs9JgaJpZM4PSEPc>.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/chrippa/livestreamer/issues/1626#issuecomment-328945760, or mute the thread https://github.com/notifications/unsubscribe-auth/AX6vIVhkSQoej2pODU05OwaG9PgcElP8ks5shtGagaJpZM4PSEPc .

Peterspapan avatar Sep 12 '17 19:09 Peterspapan