Search
 
SCRIPT & CODE EXAMPLE
 

RUBY

ruby URI.open with proxy

html = URI.open(
  "https://www.URL_YOU_WANT_TO_OPEN.com", 
  proxy_http_basic_authentication: [
    proxy_uri,
    "username",
    "password"
  ]
)

doc = Nokogiri::HTML(html, nil, 'utf-8')
Comment

PREVIOUS NEXT
Code Example
Ruby :: csv parse ruby 
Ruby :: rails generate controller without view ,test 
Ruby :: rails check log level of application 
Ruby :: class inheriting multiple modules in ruby 
Ruby :: ruby find lower number array object 
Ruby :: ruby global property from object 
Ruby :: grep routes rails 
Ruby :: ruby on rails db column contains string 
Ruby :: devise manually sign out user 
Ruby :: rails group every 10 items in array 
Ruby :: class ruby 
Ruby :: rails class sti reminders 
R :: r count number of na 
R :: generate all possible combinations of a set of characters r 
R :: suppress error r 
R :: r return index of rows that have NA in dataframe 
R :: how to group by 2 variables in r 
R :: comments in r 
R :: r dplyr add total row 
R :: how to read in txt/csv files into r 
R :: filter na in r 
R :: geom_point r 
R :: looping over R dictionary 
R :: if condition is met skip to next iteration in a for loop in r 
R :: r dplyr summarize multiple columns 
R :: formatc in r 
R :: save large nested list to text R 
R :: diff division R 
R :: parent folder for working directory in r 
Rust :: rust take user input 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =