I would like to use R to extract all URLs that are currently opened in a web browser. Consider the following example:
- I have opened the firefox browser.
- In the firefox browser, I have opened the URLs https://www.google.de/ and https://www.amazon.com/.
How could I extract these two URLs from within R, to get the following output?
my_urls <- c("https://www.google.de/", "https://www.amazon.com/")
my_urls
### [1] "https://www.google.de/" "https://www.amazon.com/"
After some research, I'm suspecting that this may be possible with the RSelenium package, but unfortunately I couldn't figure out the appropriate R code.