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...
Doridoria asked 18/10, 2014 at 16:17

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...
Narcissus asked 22/2, 2016 at 17:22

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,...
Kissel asked 28/1, 2016 at 7:56

3

Solved

I'm attempting to download a png image from a secure site through R. To access the secure site I used Rvest which worked well. So far I've extracted the URL for the png image. How can I downlo...
Gilgilba asked 24/3, 2016 at 14:19

2

Solved

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...
Erlond asked 3/5, 2016 at 7:11

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...
Moth asked 11/2, 2013 at 20:28

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...
Signify asked 1/9, 2021 at 0:41

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...
Winch asked 21/10, 2018 at 3:9

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...
Mathre asked 12/5, 2020 at 10:11

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...
Sit asked 21/5, 2016 at 20:56

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

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?...
Keshiakesia asked 11/10, 2016 at 14:18

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...
Chromate asked 18/11, 2019 at 7:31

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...
Selfaddressed asked 26/2, 2015 at 13:17

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...
Sidnee asked 15/7, 2015 at 1:52

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 ...
Menagerie asked 5/9, 2018 at 10:14

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...
Empathy asked 24/8, 2018 at 17:42

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...
Elery asked 12/8, 2018 at 16:33

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

© 2022 - 2024 — McMap. All rights reserved.