[R] Unable to take correct Web-snapshot

Ista Zahn |@t@z@hn @end|ng |rom gm@||@com
Sat Jun 2 02:28:16 CEST 2018


The documentation is at https://developers.coinbase.com/api/v2. You
can make GET requests in R using the httr packge.

--Ista

On Fri, Jun 1, 2018 at 11:12 AM, Christofer Bogaso
<bogaso.christofer using gmail.com> wrote:
> Thanks for that information.
>
> However how can I use R to directly get data from that API?
>
> On Fri, Jun 1, 2018 at 8:36 PM Martin Møller Skarbiniks Pedersen <
> traxplayer using gmail.com> wrote:
>
>> On 1 June 2018 at 15:08, Christofer Bogaso <bogaso.christofer using gmail.com>
>> wrote:
>> > Hi again,
>> >
>> > I use the *webshot* package to take snapshot from Webpage. However, when
>> I
>> > try to take snapshot from* https://www.coinbase.com/
>> > <https://www.coinbase.com/>*, this fails to take the full snapshot of
>> that
>> > page.
>>
>> Yes, that is a general problem with many webshot programs and libraries.
>>
>> The coinbase page ( and many others ) uses a lot of javascript to generate
>> their
>> pages and the webshot programs must understand javascript in all
>> details which is hard.
>>
>> If you are looking for the coinbase prices you can use their api to
>> get json instead:
>>
>> https://api.coinbase.com/v2/prices/spot?currency=USD
>>
>> Regards
>> Martin
>>
>> ______________________________________________
>> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list