Search code examples
rcsvdownloadrcurl

R Download csv file from website (R-curl)


I am trying to find an easy method to download that csv. https://www.otcmarkets.com/research/stock-screener My problem is that it seems like there is no seperate URL for the file (Or have i missed something?!). I would like to find a solution with the library(RCurl) package. I can only think of solutions in respect to a rem session which seems to be a bit overkill. Any help is appreciated... Thanks in advance. enter image description here


Solution

  • read.csv("https://www.otcmarkets.com/research/stock-screener/api/downloadCSV")
    

    You can see the URL in your browser when you hit the Download button.