Package “rvest” for web scraping https site with proxy

前端 未结 1 656
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 22:10

I want to scrap a https website, but I failed.

Here is my code:

require(rvest)
url <- \"https://www.sunnyplayer.com/de/\"
content <- read_html(         


        
相关标签:
1条回答
  • 2020-12-03 23:12

    The same thing happens to me on a proxy. To get around this, use download.file and specify a download location. You can then parse the file with read_html.

    download.file(url, destfile = 'C://whatever.html')
    content <- read_html('C://whatever.html')
    
    0 讨论(0)
提交回复
热议问题