如何在Linux系统上刷抖音
2022/5/23 3:02:42
本文主要是介绍如何在Linux系统上刷抖音,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
自从抖音出了网页版
很多小伙伴,上班刷起来了
今天,写一篇教大家如何使用linux刷抖音
抖音入驻PC端之后,其实就是一个终端的网站页面
看看我们如何在Linux端,
完成搜索、截图、访问网页等等功能
一、首先增加一下新yum
vim /etc/yum.repo.d/google-chrome111.repo
二、调整内容
[yum源名称]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
三、yum安装goglechrome
#安装 [root@harxxx ~]# yum -y install google-chrome-stable --nogpgcheck
四、我们来看看是啥版本
#查看-版本-信息 [root@har ~]# google-chrome -version Google Chrome 91.0.4472.106 [root@har ~]#
五、shell脚本玩转浏览器
1、shell使用浏览器
#直接输入百度及搜索内容
#截屏百度
[root@harbor tmp]# google-chrome --no-sandbox --headless --disable-gpu
–screenshot https://www.baidu.com/
[0615/170830.274431:WARNING:headless_browser_main_parts.cc(106)] Cannot create Pref Service with no user data dir.
[0615/170830.329462:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[0615/170831.542038:INFO:headless_shell.cc(648)] Written to file screenshot.png.
2、查询搜索结果
#截屏百度
[root@harbor tmp]# google-chrome --no-sandbox --headless --disable-gpu
–screenshot https://www.baidu.com/
[0615/170830.274431:WARNING:headless_browser_main_parts.cc(106)] Cannot create Pref Service with no user data dir.
[0615/170830.329462:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[0615/170831.542038:INFO:headless_shell.cc(648)] Written to file screenshot.png.
效果如下 ↓ ↓ ↓
4、命令行搜索欧洲杯足球宝贝
linux会在命令行搜索并保存 足球宝贝的搜索结果
#我们看看都搜到了什么 [root@harbor tmp]# google-chrome --no-sandbox --headless --disable-gpu --screenshot https://www.baidu.com/s?wd=%E8%B6%B3%E7%90%83%E5%AE%9D%E8%B4%9D [0615/170830.274431:WARNING:headless_browser_main_parts.cc(106)] Cannot create Pref Service with no user data dir. [0615/170830.329462:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader [0615/170831.542038:INFO:headless_shell.cc(648)] Written to file screenshot.png.
5、在命令行打开抖音直播页面 是这样的
六、linux上使用百度搜索
1、搜索命令
[root@localhost tmp]# google-chrome-stable --no-sandbox --headless --disable-gpu
–dump-dom https://www.baidu.com/
2、直接访问,看结果
3、搜到效果如下
例如,使用浏览器 打开 抖音网址 结果如下:
这篇关于如何在Linux系统上刷抖音的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-09都2024年了,你还不知道git worktree么?
- 2024-05-09Budibase:低代码平台的革新者
- 2024-05-09edu邮箱注册免费申请认证matlab教育版1年使用资格
- 2024-05-091Panel - 现代化、开源的 Linux 服务器运维管理面板
- 2024-02-08使用uBlock Origin将知乎网页版表情显示为纯文字标签
- 2024-02-07联想LXH-JME2209U键盘Linux下解锁F1-F12
- 2024-02-07配置DDNS使得移动设备KDEConnect自动相互识别
- 2024-01-16AI 图像自动补全 Uncrop 工具介绍
- 2024-01-16独立开发者碎碎念 1115
- 2024-01-04开启安全功能 ES 集群就安全了吗?