镜像下载、域名解析、时间同步请点击 阿里云开源镜像站

自从抖音出了网页版

很多小伙伴,上班刷起来了

今天,写一篇教大家如何使用linux刷抖音

file

抖音入驻PC端之后,其实就是一个终端的网站页面

看看我们如何在Linux端,

完成搜索、截图、访问网页等等功能

一、首先增加一下新yum

  1. 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

file

三、yum安装goglechrome

  1. #安装
  2. [root@harxxx ~]# yum -y install google-chrome-stable --nogpgcheck

file

四、我们来看看是啥版本

  1. #查看-版本-信息
  2. [root@har ~]# google-chrome -version
  3. Google Chrome 91.0.4472.106
  4. [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.

效果如下 ↓ ↓ ↓

file

4、命令行搜索欧洲杯足球宝贝

linux会在命令行搜索并保存 足球宝贝的搜索结果

  1. #我们看看都搜到了什么
  2. [root@harbor tmp]# google-chrome --no-sandbox --headless --disable-gpu
  3. --screenshot https://www.baidu.com/s?wd=%E8%B6%B3%E7%90%83%E5%AE%9D%E8%B4%9D
  4. [0615/170830.274431:WARNING:headless_browser_main_parts.cc(106)] Cannot create Pref Service with no user data dir.
  5. [0615/170830.329462:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
  6. [0615/170831.542038:INFO:headless_shell.cc(648)] Written to file screenshot.png.

5、在命令行打开抖音直播页面 是这样的

file

六、linux上使用百度搜索

1、搜索命令

[root@localhost tmp]# google-chrome-stable —no-sandbox —headless —disable-gpu

—dump-dom https://www.baidu.com/

2、直接访问,看结果

file

3、搜到效果如下

例如,使用浏览器 打开 抖音网址 结果如下:

file

本文转自:https://blog.csdn.net/weixin_42350212/article/details/124368382

更多相关文章

  1. Android上面的百度地图使用步骤
  2. 通过浏览器直接打开Android应用程序
  3. android 基于百度地图api获取经纬度
  4. 分享:用 NDK C++做底层开发的Android(安卓)浏览器,纯免费,无广告
  5. Android引用百度定位API第三方组件后导致其它.so文件无法正常加
  6. Android基于腾讯X5内核的WebView(超级浏览器)
  7. 为什么我说 Android(安卓)很糟糕
  8. intellij idea 设置用真机测试android
  9. intellij idea 设置用真机测试android

随机推荐

  1. ImageView的属性android:scaleType,即Imag
  2. launcher3时钟小部件
  3. Android TTS 支持中文
  4. 2020最新版Android一步一步教轻松通过Arc
  5. android使用滚动视图
  6. android UI跨线程操作
  7. GridView
  8. 设置透明,模糊,黑暗度
  9. android aosp 下载源代码
  10. android中关于margin的一些注意点