Questions tagged [chromote]

6 questions
2
votes
1 answer

How to properly close a chromote session?

Using the Linux command top I see there are no processes named, "chrome". Then I do: library("chromote") b <- ChromoteSession$new() and see eight processes called chrome. Now I close the window/tab: b$close() # [1] TRUE but the eight processes…
ixodid
  • 2,180
  • 1
  • 19
  • 46
2
votes
1 answer

webshot2::webshot() fails to take screenshot because of file system permissions

Running the below code will sometimes fail and return the attached error message. webshot2::webshot(url = "~/a_web_page.html", file = "~/an_image.png") Error in launch_chrome(path, args) : Failed to start chrome. Error:…
Patrick
  • 742
  • 7
  • 19
1
vote
0 answers

Is there a way to create a warc from a dynamic website with chromote and another R library?

I would like to save a page rendered with headless chrome using chromote to a warc file. Rendering the page works fine, but I am a bit stuck at saving it as a warc file. First I wanted to use jwatr but due to some policies on our laptops this is not…
Lod
  • 609
  • 7
  • 19
0
votes
1 answer

Is it possible to include a JavaScript library with chromote?

With phantomJS one can include a JavaScript library by doing page.inject("thelibrary.js"). Is it possible with the chromote package? I didn't find anything in the doc.
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
0
votes
1 answer

From chromote to rvest

With chromote, I should be able to obtain the HTML codes of a website like this (if I'm not mistaken): library(chromote) b <- ChromoteSession$new() b$view() b$Page$navigate("https://www.ooir.org/") x <- b$DOM$getDocument() Is it possible to then…
anpami
  • 760
  • 5
  • 17
0
votes
0 answers

Log in to website and download cookies using R package

I'd like to be able to login to a website and save the cookies to a file programmatically. I thought I might be able to do this with {webdriver}. While I can enter in an email and password, clicking the "Log In" button doesn't seem to do…
Giovanni Colitti
  • 1,982
  • 11
  • 24