How to use Tor socks5 in R getURL

前端 未结 4 1229
终归单人心
终归单人心 2021-02-06 09:45

I want to use Tor in getURL function in R. Tor is working (checked in firefox), socks5 at port 9050. But when I set this in R, I get the f

4条回答
  •  北恋
    北恋 (楼主)
    2021-02-06 09:54

    There are curl bindings for R, after which you can use curl to call the Tor SOCKS5 proxy server.

    The call from the shell (which you can translate to the R binding) is:

    curl --socks5-hostname 127.0.0.1:9050 google.com

    Tor will do the DNS also for A records.

提交回复
热议问题