Questions tagged [httr]

The R package 'httr' provides useful tools for working with HTTP connections. It is a simplified wrapper built on top of 'RCurl'.

The R package httr provides useful tools for working with HTTP connections. It is a simplified wrapper built on top of RCurl. It is much much less configurable but because it only attempts to encompass the most common operations it is also much much simpler.

Resources:

1019 questions
0
votes
1 answer

passing odata $filter in httr GET request

looking to pass $filter criteria using odata in R's httr package, but keep getting an 'Error 400. The request is badly formed'. I'm able to paste the url/$filter in my browser and obtain results ok, and am also to obtain results in R without the…
0
votes
2 answers

Web scraping password protected website using R

i would like to web scrape yammer data using R,but in order to do so first il have to login to this page,(which is authentication for an app that i created). https://www.yammer.com/dialog/authenticate?client_id=iVGCK1tOhbZGS7zC8dPjg I am able to get…
vinay
  • 57
  • 1
  • 12
0
votes
1 answer

pulling data from web search form using Rcurl/httr

I'm a beginner in web scraping and not trying to figure out the issue I am facing in pulling the data from web search form. The form looks something like below. Details of practitioner Given name: Gender My code looks like below. pars <-…
user3719979
  • 163
  • 1
  • 9
0
votes
1 answer

Write all items from list to a character vector from GET httr request

I am trying to extract data from a GET request and parse it as below: # Function to get details from all experiments getData<- function() { server_url <- "http://127.0.0.1:5000/experiments" r <- GET(url = server_url, verbose()) return(r) } #…
user4687531
  • 1,021
  • 15
  • 30
0
votes
1 answer

Web scraping and parsing HTML in R

I'm trying to parse this webpage into a dataframe but keep getting stuck using the XML package being told it's not XML. I would like to take the below text and convert into a table/data.frame - what is the easiest way to do this after i've taken…
Tammboy
  • 321
  • 4
  • 14
0
votes
1 answer

Text mining - Data extraction from website

Can anyone please help to extract reviews and their Location from below link? I have successfully able to write code but not able to download both data(reviews and their location) in two separate columns in excel. I am new to…
Ronak Kumar
  • 69
  • 1
  • 1
  • 7
0
votes
1 answer

POST request to score using Cloud Model

I am using IBM Bluemix and the new SPSS Predictive Modelling service. I want to score some data using a model that I deployed in the cloud. In the documentation I have the following Request example: Content-Type: application/json;charset=UTF-8 …
aruizga
  • 644
  • 1
  • 4
  • 19
0
votes
2 answers

Deleted httr, now can't reinstall, or load devtools

I was trying to install twitteR, but the install failed, saying I needed httr >0.6 and I only had 0.3. I tried to update httr. However, I seemed to have to 2 versions simultaneously, and when I used library(twitteR) it still said I had httr 0.3 and…
timcdlucas
  • 1,334
  • 8
  • 20
0
votes
2 answers

R twitteR package maxID doesn't work on Mavericks

I am trying to crawl tweets with twitteR package version twitteR_1.1.8 and I want to do this operation by using maxID. Even maxID property is in the twitteR manual which is published on February,11; I get a warning that maxID is unrecognized. Let…
0
votes
0 answers

Warning message: In curlOptions: Duplicated curl options

I am working on an R script that will fetch posts from twitter. I've noticed that everytime I run below statements: l_get <- GET( l_twitterQuery, config(httpheader = c("Authorization" = l_token))) l_post <- POST( url = l_oAuthUrl …
Andres Alvarado
  • 196
  • 1
  • 11
0
votes
2 answers

openrouteservice.org API

when using openrouteservice... and adapting the suggested url example on their wiki page... if running the following url in the…
h.l.m
  • 13,015
  • 22
  • 82
  • 169
0
votes
2 answers

xpathSApply not outputting expected elements

I've been spending a lot of time trying to figure out the issue here but unfortunately had no luck yet. I hope someone can point me in the right direction. I'm trying to extract the address elements for all properties listed in the link provided in…
Bahae Omid
  • 554
  • 6
  • 18
0
votes
1 answer

GET {httr} returns a Bad Request response

I am trying to scrape html elements of the url stored insearchlink. The only method that worked for me ishtmlTreeParse {XML}.However it's not returning the elements I'm looking for. example:img[@title='Add to compare'] searchlink <-…
Bahae Omid
  • 554
  • 6
  • 18
0
votes
2 answers

Retrieve Oauth 2.0 refresh token with R httr google demo

A refresh token is not available when I follow Hadley's R google Oauth2.0 demo to access Fusion tables. Demo: https://github.com/hadley/httr/blob/master/demo/oauth2-google.r Example of modified "offline" attempt: google_token <-…
0
votes
0 answers

Post XML form using httr

I am trying to POST an xml object using httr In my application, I am creating the XML object like this: doc <- htmlTreeParse(conts, useInternalNodes = T) xmlFormula <- xpathSApply(doc, "//*/textarea", xmlValue) x <-…