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
-1
votes
1 answer

POST requests in R vs. Python

I ran a POST request in Python and able to decode the text data by using below code: import requests import pandas as pd import json import numpy as np url = "SomeURL" payload = "{\r\n \"tagCsv\":…
CodeMaster
  • 431
  • 4
  • 14
-1
votes
1 answer

Getting JSON from WEB API to R - Beginner here

Im trying to get JSON from webapi to R From the following website http://wbes.srldc.in/Report/GetCurrentDayFullScheduleMaxRev?regionid=4&ScheduleDate=31-05-2020 When i try in browser, getting a proper response. However when i try in R using any…
Ansha
  • 1
-1
votes
1 answer

NA when trying to loop through xpath nodes R

I'm trying to get data from this website, which contains real estate ads from Rio de Janeiro:…
lucasm
  • 19
  • 2
-1
votes
1 answer

Cannot make request from GET in R to idealista API

I am trying to make a request from an API of "idealista" (link). It needs authentication, so what I did was the next: if(!require("jsonlite")){install.packages("jsonlite")} if(!require("httr")){install.packages("httr")} consumer_key <-…
Henry Navarro
  • 943
  • 8
  • 34
-1
votes
1 answer

httr CSV Content reading as integer instead of double

I'm trying to import a csv using httr from an online source, everything is fine except for it's reading a column as integer when it should be a double resulting in those values to show up as NA I'm using and getting the below issue. getdata <-…
Joseph Noirre
  • 387
  • 4
  • 20
-1
votes
1 answer

Extracting token from XHR request header with R

I've been scraping data from an API using R with the httr and plyr libraries. Its pretty straight forward and works well with the following code: library(httr) library(plyr) headers <- c("Accept" = "application/json, text/javascript", …
Safarr
  • 3
  • 3
-1
votes
1 answer

Curl dropbox request in R using httr

I have this sample curl request: curl -X POST https://content.dropboxapi.com/2/files/upload \ --header "Authorization: Bearer fakeaccesstoke12345" \ --header "Dropbox-API-Arg: {\"path\": \"/Homework/math/Matrices.txt\",\"mode\": \"add\"}" \ …
jgozal
  • 1,480
  • 6
  • 22
  • 43
-1
votes
1 answer

Remove lines with 0.0000 in specific columns with readHTMLTable()

I try to remove rows in an HTML table with a 0.0000 em specific column, using the readHTMLTable() function in XLM package, without success. In my code: #Packages require(httr) require(XML) #Function for read HTML table #For remove 0.0000…
Leprechault
  • 1,531
  • 12
  • 28
-1
votes
1 answer

R - httr - Twitter Error 401 using GET providing Authorization Error

This is the code that provides the error, along with the output from it. I'm positive my access keys and tokens are correct. I triple checked them. I'm guessing my query may be wrong somehow? My guess was defaulting since_id=0 for my first run, but…
Jibril
  • 967
  • 2
  • 11
  • 29
-1
votes
1 answer

Using R to call a Web Service: Send data and get the result table back in R

http://snomedct.t3as.org/ This is a web service that will analyse English clinical text, and report any concepts that can be detected. For e.g.- I have headache. It will identify headache as a Symptom. Now what I would like to do is send the…
user3117837
  • 87
  • 1
  • 8
-1
votes
1 answer

How can I scrape this webpage in R?

I'm trying to scrape the following webpage in R using the XML, RCurl, or httr libraries: http://accuscore.com/fantasy-sports/nfl-fantasy-sports/Rest-of-Season-RB The webpage opens correctly in my browser. Here are my attempts to scrape the…
itpetersen
  • 1,475
  • 3
  • 13
  • 32
-2
votes
1 answer

using httr POST in R to authenticate towards API REST

I am trying to make an autentication from R into a demo account that is using API REST and json. Based on input from user, I have now digged into the httr and POST details and my code looks like this. When I look into the details it seems that the…
Toolbox
  • 2,333
  • 12
  • 26
-2
votes
1 answer

get string in url (web scraping)

I'm not familiar with web scraping although I've managed to get some contents in few ocasions. However, this time although my problem looks simple I can't get a string containing the symbol, name and market in a web page. That is, I'd like to get…
nopeva
  • 1,583
  • 5
  • 22
  • 38
-2
votes
1 answer

HTML Form authentication using R

I'm trying to log into http://etportfolio.economictimes.indiatimes.com/Login.htm using R to access my stock holding within the portfolio created. Here is my script to which I get a message "Method Not…
1 2 3
67
68