httr Questions
2
Solved
I need to download information from web site that is protected using cookies. I pass this protection manually and then insert cookies to httr.
Here is similar topic, but it does not solve my prob...
4
Solved
I've been playing a little with httr and rcurl and cannot manage to translate the following curl GET request into R:
curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer...
3
Solved
I'm trying to access an open API with httr, and having no luck. Whenever I try:
httr::GET("https://api.openaq.org/v1/countries")
I get the following error:
Error in curl::curl_fetch_memory(url,...
3
Solved
2
Solved
How to specify certificate, key and root certificate with httr for certificate based authentication?
I am trying to access data using httr library from server which expects certificate based authentication. I have certificate (cert.pem), key file (key.pem) and root certificate (caroot.pem)
Follow...
Filipino asked 17/5, 2016 at 10:41
2
Updated:
I am trying to access a corporate internal web API using:
require(httr)
url = 'https://my_server/api/search/query?q=stuff'
httr::set_config( config(ssl_verifypeer = 0L) )
data <- httr...
3
I would like to get response headers from GET or POST.
My example is:
library(httr)
library(RCurl)
url<-'http://www.omegahat.org/RCurl/philosophy.html'
doc<-GET(url)
names(doc)
[1] "u...
1
I use the R package httr to authenticate myself at an oauth endpoint (strava) using oauth_endpoint(), oauth_app() and oauth2.0_token() (Step 1).
# Step 1: Genrate oauth token
strava_endpoint <-...
Stripling asked 9/3, 2022 at 8:6
1
I'm trying to write an R package that can be run in a headless environment like Github Actions. Using httr you can authenticate with the Spotify API in an interactive session with the below code (s...
2
Solved
I'm trying to make my Shiny app to redirect the user to another page. I'm using httr to send GET requests and see if the user is logged in. If he's not, I want to redirect him to another link.
Ca...
Yuji asked 7/11, 2017 at 12:21
1
Solved
I'm trying to use GitHub Actions to query the GitHub API using an OAuth 2.0 token through an R script. It works fine on my local machine when I run the code, where a browser window pops up indicati...
Hyehyena asked 16/6, 2021 at 14:57
4
Solved
I want to loop over a list of URLs and I want to find out if these URLs exist or not.
RCurl provides the url.exists() function. However, the output doesn't seem to be right, because for example i...
1
I am querying Freebase to get the genre information for some 10000 movies.
After reading How to optimise scraping with getURL() in R, I tried to execute the requests in parallel. However, I faile...
Saltatorial asked 10/4, 2014 at 11:27
2
I'm learning how to fetch data using an API in R. I understand that the aim of httr is to provide a wrapper for the curl package.
The documentation I'm following so that I make requests to the API...
3
Solved
I need to access the same web page with different "keys" to get specific content it provides.
I have a list of keys x and I use the GET command from httr package to access the web page and then re...
1
Solved
I'm trying to access JSON data (in R) from a REST API.
To authenticate myself, I need to use a POST method in https://dashboard.server.eu/login. The data that needs to be sent are email and passwo...
Barolet asked 9/3, 2020 at 15:13
1
Solved
Authenticate at Github via Travis-CI using httr as well as locally (local works, remote doesn't)
I have an Rmd file that uses httr to access the Github-API. Locally, I can authenticate with Github just fine if I run the following in the R console before rendering the Rmd:
myapp <- oauth_ap...
Greco asked 7/1, 2020 at 16:16
3
Solved
httr::GET preserves cookies when making requests to the same website.
Is it possible to query those preserved cookies?
How can I flush those preserved cookies and make "pristine" requests again?...
1
Solved
If we visit this url in chrome, with devtools open, we can clearly see a cookie appear (in chrome developer tools -> 'application' -> 'cookies').
If we attempt the same thing using httr::GET(), w...
3
I would like to extract the data from MARVEL DEVELOPER by API code and analyze it (using R).
I got the following url from MARVEL website: http://gateway.marvel.com:80/v1/public/characters?apikey=f...
3
I have a list of about 13,000 URLs that I want to extract info from, however, not every URL actually exists. In fact the majority don't. I have just tried passing all 13,000 urls through html() but...
1
Solved
I would like to create a RasterLayer from GeoTIFF data provided by a server. I'll query the server for this data using a httr::GET call (the data is provided on-demand, so in the application there ...
1
Solved
I would like to submit the following form (the form appears after you click on link "Kliknite na ..."):
http://www1.biznet.hr/HgkWeb/do/extlogon
I have to enter one parameter, named "OIB" and sub...
1
Solved
I want to submit a form from following web page: http://www.hzzo-net.hr/statos_OIB.htm
First, I use 2captcha service to bypass recaptcha:
# parameters
api_key <- "c+++"
api_url <- "http://2...
1
Solved
I'm trying to fetch documents from the API using R. Appreciate the clarification of the process in this post. I've been following the above steps with partial success, but still fail the last step ...
Rectangle asked 19/6, 2018 at 8:47
1 Next >
© 2022 - 2024 — McMap. All rights reserved.