crrri | A Chrome Remote Interface written in R | Code Inspection library
kandi X-RAY | crrri Summary
kandi X-RAY | crrri Summary
A Chrome Remote Interface written in R
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of crrri
crrri Key Features
crrri Examples and Code Snippets
Community Discussions
Trending Discussions on crrri
QUESTION
I'd like to use Chromote to gather the response body of the XHR calls made by a website, but I find the API a bit complex to master, especially the async pipeline.
I guess I need to first enable the Network functionality and then load the page (this can do), but then I need to:
- list all XHR calls
- filter them by recognizing patterns in the request URL
- access the request body of the selected sources
Can someone provide any guidance or tutorial material on this regard?
UPDATE:
Ok, I switched to package crrri
and made a general function for the purpose. The only missing part is some logic to decide when to close the connection and return the results:
ANSWER
Answered 2020-Aug-04 at 08:26Cracked it. Here's the final function. It uses a crrri::perform_with_chrome
wich force synch behaviour and run the rest of the process into a promise
object with a resolve
callback defined outside the promise itself which is called either if a number of resources are collected or if a certain amount of time has passed:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install crrri
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page