Warning
Zyte API is replacing Smart Proxy Manager. It is no longer possible to sign up to Smart Proxy Manager. If you are an existing Smart Proxy Manager user, see Migrating from Smart Proxy Manager to Zyte API.
Using Smart Proxy Manager with R#
Warning
For the code below to work you must first install the Zyte CA certificate.
Note
All the code in this documentation has been tested with R 4.1.2.
Install R and follow Fetching HTTPS pages with Zyte Smart Proxy Manager to request URLs with
https
.Run R on the terminal using
R
command.Install httr library by running
install.packages("httr")
inside R prompt. If there’s an error sayingLibrary not loaded: /opt/X11/lib/libSM.6.dylib
runsystem("locate libSM.6.dylib")
.Load
httr
library by runninglibrary(httr)
inside R prompt.Run the sample code mentioned below inside R prompt after replacing
<SPM-APIKEY>
with Zyte Smart Proxy Manager API Key.
GET("http://toscrape.com", use_proxy(url = "proxy.zyte.com", port = 8011, username = "<SPM-APIKEY>", password = ""))