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

[TikTok] 403 for "friends-only" videos when downloading via profile #2166

Closed
6 of 7 tasks
jb2170 opened this issue Dec 30, 2021 · 0 comments · Fixed by #2171
Closed
6 of 7 tasks

[TikTok] 403 for "friends-only" videos when downloading via profile #2166

jb2170 opened this issue Dec 30, 2021 · 0 comments · Fixed by #2171
Labels
site-bug Issue with a specific website

Comments

@jb2170
Copy link

jb2170 commented Dec 30, 2021

Checklist

Region

UK

Description

Whilst #2142 mostly fixes #2135, friends-only videos raise a 403 when downloading a profile via --cookies "mycookies.txt" "https://www.tiktok.com/@example_username".

Note that downloading a friends-only video directly via "https://www.tiktok.com/@example_username/video/id" works.

Verbose log

...
[download] Downloading video 7 of 8
[debug] Default format spec: bestvideo*+bestaudio/best
[info] [video-id redacted]: Downloading 1 format(s): h264_540p_1234567-1
[debug] Invoking downloader on "https://video-va.tiktokv.com/006579b458ceeeed01e0710c96a0eeee/ff52ffcd/tos-useast5-pve-0068-tx/41e424aaae492b26d333b28c8c69233d?a=0000&br=1111&bt=2222&cd=0000&ch=0&cr=0&cs=0&dr=0&ds=0&er=&ft=Zab9Feg3wPZ1-I&l=2021123000000000000000000000000000&lr=&mime_type=video_mp4&net=0&pl=0&policy=0000&qs=0&rc=000000&vl=&vr="
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
  File "/home/jb2170/Repositories/_Others/Other People/yt-dlp/yt_dlp/YoutubeDL.py", line 2991, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/home/jb2170/Repositories/_Others/Other People/yt-dlp/yt_dlp/YoutubeDL.py", line 2701, in dl
    return fd.download(name, new_info, subtitle)
  File "/home/jb2170/Repositories/_Others/Other People/yt-dlp/yt_dlp/downloader/common.py", line 440, in download
    ret = self.real_download(filename, info_dict)
  File "/home/jb2170/Repositories/_Others/Other People/yt-dlp/yt_dlp/downloader/http.py", line 371, in real_download
    establish_connection()
  File "/home/jb2170/Repositories/_Others/Other People/yt-dlp/yt_dlp/downloader/http.py", line 119, in establish_connection
    raise err
  File "/home/jb2170/Repositories/_Others/Other People/yt-dlp/yt_dlp/downloader/http.py", line 113, in establish_connection
    ctx.data = self.ydl.urlopen(request)
  File "/home/jb2170/Repositories/_Others/Other People/yt-dlp/yt_dlp/YoutubeDL.py", line 3457, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
...
@jb2170 jb2170 added site-bug Issue with a specific website triage Untriaged issue labels Dec 30, 2021
pukkandan pushed a commit that referenced this issue Dec 31, 2021
Closes #2166
Authored by: MinePlayersPE
@pukkandan pukkandan removed the triage Untriaged issue label Dec 31, 2021
Ashish0804 added a commit to Ashish0804/yt-dlp that referenced this issue Jan 1, 2022
commit 8efffaf
Author: MinePlayersPE <mineplayerspealt@gmail.com>
Date:   Sat Jan 1 13:12:33 2022 +0700

    [XVideos] Check HLS formats (yt-dlp#2193)

    Closes yt-dlp#1823
    Authored by; MinePlayersPE

commit 26f2aa3
Author: Ashish Gupta <39122144+Ashish0804@users.noreply.github.com>
Date:   Sat Jan 1 02:32:23 2022 +0530

    [hotstar] Add extractor args to ignore tags (yt-dlp#2116)

    Authored by: Ashish0804

commit 3464a27
Author: pgaig <87302379+pgaig@users.noreply.github.com>
Date:   Fri Dec 31 21:58:23 2021 +0100

    [VrtNU] Handle empty title (yt-dlp#2147)

    Closes yt-dlp#2146
    Authored by: pgaig

commit 497d77e
Author: Ashish Gupta <Ashish08@protonmail.com>
Date:   Fri Dec 31 10:41:42 2021 +0530

    [KelbyOne] Add extractor (yt-dlp#2181)

    Closes yt-dlp#2170
    Authored by: Ashish0804

commit 9040e2d
Author: LE <llacb47@users.noreply.github.com>
Date:   Fri Dec 31 15:11:35 2021 -0500

    [mixcloud] Detect restrictions (yt-dlp#2169)

    Authored by; llacb47

commit 6134fbe
Author: MinePlayersPE <mineplayerspealt@gmail.com>
Date:   Sat Jan 1 03:10:46 2022 +0700

    [TikTok] Pass cookies to formats (yt-dlp#2171)

    Closes yt-dlp#2166
    Authored by: MinePlayersPE

commit cfcf60e
Author: MinePlayersPE <mineplayerspealt@gmail.com>
Date:   Sat Jan 1 03:09:30 2022 +0700

    [BiliIntl] Add login (yt-dlp#2172)

    and misc improvements

    Authored by: MinePlayersPE

commit 4afa3ec
Author: Felix S <felix.von.s@posteo.de>
Date:   Fri Dec 31 20:06:45 2021 +0000

    [extractor] Detect more subtitle codecs in MPD manifests (yt-dlp#2174)

    Authored by: fstirlitz

commit 11aa91a
Author: MinePlayersPE <mineplayerspealt@gmail.com>
Date:   Thu Dec 30 11:20:17 2021 +0700

    [TikTok] Fix extraction for sigi-based webpages (yt-dlp#2164)

    Fixes: yt-dlp#2133
    Authored by: MinePlayersPE

commit abbeeeb
Author: pukkandan <pukkandan.ytdlp@gmail.com>
Date:   Thu Dec 30 08:43:40 2021 +0530

    [outtmpl] Alternate form for `D` and fix suffix's case

    Fixes: yt-dlp#2085 (comment), https://github.com/yt-dlp/yt-dlp/pull/2132/files#r775729811

commit 2c539d4
Author: pukkandan <pukkandan.ytdlp@gmail.com>
Date:   Thu Dec 30 08:15:48 2021 +0530

    [cookies] Fix bug when keyring is unspecified

    Closes yt-dlp#2167

commit 042931a
Author: pukkandan <pukkandan.ytdlp@gmail.com>
Date:   Thu Dec 30 08:15:07 2021 +0530

    Allow escaped `,` in `--extractor-args`

    Closes yt-dlp#2152

commit 96f13f0
Author: MinePlayersPE <mineplayerspealt@gmail.com>
Date:   Thu Dec 30 05:00:44 2021 +0700

    [TikTok] Change app version (yt-dlp#2161)

    Closes yt-dlp#2133, yt-dlp#2135
    Authored by: MinePlayersPE, llacb47

commit 4b93532
Author: u-spec-png <54671367+u-spec-png@users.noreply.github.com>
Date:   Tue Dec 28 20:42:14 2021 +0000

    [Drooble] Add extractor (yt-dlp#1547)

    Closes yt-dlp#1527
    Authored by: u-spec-png

commit dd5e60b
Author: u-spec-png <54671367+u-spec-png@users.noreply.github.com>
Date:   Tue Dec 28 18:58:06 2021 +0000

    [Instagram] Add story/highlight extractor (yt-dlp#2006)

    Fixes ytdl-org/youtube-dl#25575
    Authored by: u-spec-png

commit e540c56
Author: MinePlayersPE <mineplayerspealt@gmail.com>
Date:   Tue Dec 28 09:38:23 2021 +0700

    [TikTok] Fallback to feed API endpoint (yt-dlp#2142)

    Authored by: MinePlayersPE
    Workaround for yt-dlp#2133

commit 45d86ab
Author: pukkandan <pukkandan.ytdlp@gmail.com>
Date:   Tue Dec 28 04:21:13 2021 +0530

    Allow unicode characters in `info.json`

    Closes yt-dlp#2139

commit f02d24d
Author: Pierre Mdawar <pierre@mdawar.dev>
Date:   Tue Dec 28 03:38:31 2021 +0530

    [utils] Fix `format_bytes` output for Bytes (yt-dlp#2132)

    Authored by: pukkandan, mdawar

commit ceb9832
Author: pukkandan <pukkandan.ytdlp@gmail.com>
Date:   Tue Dec 28 02:52:11 2021 +0530

    Don't treat empty containers as `None` in `sanitize_info`

commit 7537e35
Author: pukkandan <pukkandan.ytdlp@gmail.com>
Date:   Tue Dec 28 02:49:02 2021 +0530

    [gfycat] Fix `uploader`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants