草庐IT

headless-rcp

全部标签

python - 带有 Selenium 的 Firefox( headless )

如何使用selenium和firefox抓取网站?安装Firefox、xvfb、seleniumecho"debhttp://packages.linuxmint.comdebianimport">>/etc/apt/sources.list&&apt-getupdateapt-getinstallfirefoxxvfbpython-devpython-pippipinstallpyvirtualdisplayseleniumselenium_scrape.pyfrompyvirtualdisplayimportDisplayimporttimefromseleniumimportwe

linux - 如何在 headless 远程服务器上登录到 `firebase-tools`?

我正在尝试通过Putty在远程Linux服务器上使用firebase-tools。此服务器上没有运行桌面。当我运行firebaselogin时,我看到一个很长的url,我需要将其复制/粘贴到任何其他设备的浏览器中:https://accounts.google.com/o/oauth2/auth?client_id=xxxxxxxxxxxx.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%2

python - Selenium Python Headless Webdriver (PhantomJS) 不工作

所以我无法让selenium与headless驱动程序一起工作,特别是PhantomJS。我正在尝试让它在Ubuntu网络服务器(Ubuntu14.04.2LTS)上运行。从python解释器(Python2.7.6)运行以下命令给出:fromseleniumimportwebdriverdriver=webdriver.PhantomJS()Traceback(mostrecentcalllast):File"",line1,inFile"/usr/local/lib/python2.7/dist-packages/selenium/webdriver/phantomjs/webdr

linux - 如何在 linux 中安装 chrome( headless )

我有一个运行linuxredhad的AWSEC2。有没有办法在其上安装最新的Chromev59,以便我可以像PhantomJS一样以headless模式运行它?我在谷歌中可以找到的所有资源都是关于如何在具有UI的ubuntu中安装它的。我的Linux没有用户界面。谢谢 最佳答案 这个问题有点老,但有人可能会发现答案很有用。这些命令在ubuntu中安装headlesschrome:apt-getupdate&&apt-getinstall-y\apt-transport-https\ca-certificates\curl\gnupg

php - Libreoffice --headless 拒绝转换,除非 root,无法从 PHP 脚本运行

运行headlessUbuntu服务器12.something。root@server:chownwww-data/my/path/-Rroot@server:chgrpwww-data/my/path/-Rroot@server:chmod755/my/path/-Rroot@server:libreoffice--headless--convert-topdf:writer_pdf_Export/my/path/foo.ppt--outdir/my/pathconvert/my/path/foo.ppt->/my/path/foo.pdf像魅力一样工作。root@server:su

linux - 在 headless linux 服务器上使用 git 客户端

如何强制git客户端仅使用控制台/终端。当我ssh进入我的远程/headlesslinux计算机并尝试运行时:git克隆https://myname@bitbucket.org/xxx/xxx.gitgit提示并给我这个错误:(gnome-ssh-askpass:2769):Gtk-WARNING**:无法打开显示:我不想使用图形界面,也不想使用ssh-X。我只想将git-client配置为仅使用终端。我使用CentOs并通过yuminstallgit获得了git-client。 最佳答案 您可以通过取消设置SSH_ASKPASS环

android - 在没有 GUI 的情况下运行 Android 模拟器( headless (headless) Android)

如何在没有GUI(headless(headless)Android)的情况下运行模拟器?我的要求是在模拟器上运行headless(headless)Android。如果我使用ro.config.headless1是否正确?还是禁用zygote? 最佳答案 从29.2.11开始,您需要使用-no-window选项而不是emulator-headless二进制文件:Thebinaryemulator-headlessisnowretired.Headlessbuildsoftheenginearenowlaunchedviaemula

node.js - 如何使用 headless : true? 使用 puppeteer 下载文件

我一直在运行以下代码,以便从网站http://niftyindices.com/resources/holiday-calendar下载csv文件:constpuppeteer=require('puppeteer');(async()=>{constbrowser=awaitpuppeteer.launch({headless:true});constpage=awaitbrowser.newPage();awaitpage.goto('http://niftyindices.com/resources/holiday-calendar');awaitpage._client.sen

node.js - Selenium/WebdriverIO Chrome headless ?

是否可以使用Selenium进行自动浏览器测试/WebdriverIO在headless模式下使用Chrome?据说是Chrome--headless现在是一件事,但我无法让他们的示例正常工作。我希望Selenium有这个选项?我正在像这样初始化WebdriverIO:constWebdriverIO=require('webdriverio');letdriver=WebdriverIO.remote({desiredCapabilities:{browserName:browser,//"chrome"or"firefox"},});我正在使用selenium-standalone

javascript - 具有屏幕截图功能的 headless node.js javascript 浏览器?

是否有任何node.js的headless浏览器支持将呈现的页面转储到文件中?我知道phantomjs支持渲染到文件,但它不在node.js上运行。我知道zombie.js是node.jsheadless浏览器,但不支持渲染到文件。 最佳答案 我怀疑你会发现任何能像phantomjs一样工作的东西。我只是将渲染视为异步后端进程,并在您的主node.js进程的子进程中执行幻像,并称之为一天。渲染网页是困难的,而且由于phantom是基于WebKit的,它实际上可以做到。我认为永远不会有一个Node库可以将网页渲染为不是基于现有浏览器渲