小编Dav*_*ish的帖子

youtube-dl 如何下载需要用户认证和 2FA 的视频?

当我尝试下载我的私人视频时,我得到以下信息:

youtube-dl https://youtu.be/Q-xxxx-xxxx
[youtube] Q-xxxx-xxxx: Downloading webpage
[youtube] Q-xxxx-xxxx: Downloading video info webpage
WARNING: Unable to extract video title
ERROR: This video is unavailable.
Run Code Online (Sandbox Code Playgroud)

当我尝试使用用户名和密码时,它在我的 2FA 上失败。

youtube-dl --username=me@gmail.com  https://youtu.be/Q-xxxx-xxxx
Type account password and press [Return]: 
[youtube] Downloading login page
[youtube] Looking up account info
[youtube] Logging in
Type 2-step verification code and press [Return]: 
[youtube] Submitting TFA code
WARNING: Unable to submit TFA code: HTTP Error 400: Bad Request
[youtube] Q-xxxx-xxxx: Downloading webpage
[youtube] Q-xxxx-xxxx: Downloading video info webpage …
Run Code Online (Sandbox Code Playgroud)

video google-chrome youtube cookies youtube-dl

18
推荐指数
1
解决办法
4万
查看次数

如何查看所有用户的 systemd 计时器?

我有一些用户在 Ubuntu 和 Arch Linux systemd 系统上以 linger 模式运行。这意味着,即使用户没有登录系统,他们的计时器也可以运行。作为 root 用户,我如何才能看到所有活动的计时器,包括所有用户的计时器?

systemctl list-timers会给我系统计时器。如果我以用户身份登录,systemctl --user list-timers则会向我提供该用户的计时器。但是,如果我跑步sudo -u anotheruser systemctl --user list-timers,那么我会得到Failed to connect to bus: No such file or directory

linux sudo systemd

5
推荐指数
1
解决办法
3312
查看次数

标签 统计

cookies ×1

google-chrome ×1

linux ×1

sudo ×1

systemd ×1

video ×1

youtube ×1

youtube-dl ×1