If you want to continue development with Ruby, we highly recommend reading their documentation.
To run the following code example, you'll need to have Ruby installed:
Once you have Ruby installed, continue with the following steps:
- Open the Command Prompt/Terminal.
- Create your project directory using the
mkdir ruby_example
command. - Navigate to your project folder using the
cd ruby_example
command. - Execute the following command to download our proxy setup example file:
curl https://raw.githubusercontent.com/Smartproxy/Smartproxy/master/ruby/ruby.rb > ruby.rb
-
You should see a new file named
ruby.rb
in your project folder. Open it using an editor of your choice. -
To run this example, set your username, password, and endpoint information you'd like to use and enter them in the following sections of the code:
To execute the Ruby example, simply run ruby ruby.rb
in your Terminal tool.
You should see the IP details from the target website in the console window if everything was set up correctly:
Email - sales@smartproxy.com