For your second question read this post from @Fox ,
maybe its what you need. Its in Russian, but you can
use translator. There is an example script too >
How to save the result of a JavaScript to a variable
-
I have a js file that crawls Twitter data like this, but I want to save the result to a variable after it finishes running. Is there any way to do that? Thank you for your response. Tweet_Scrapper9.js
