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. I tried following :> library(webshot) > webshot("https://www.coinbase.com/", 'aa.pdf')However in the pdf page, I done see the quotes which are available on the main page in the 4 boxes. Any help how to resolve this would be highly appreciated. Thanks, [[alternative HTML version deleted]]
Martin Møller Skarbiniks Pedersen
2018-Jun-01 15:05 UTC
[R] Unable to take correct Web-snapshot
On 1 June 2018 at 15:08, Christofer Bogaso <bogaso.christofer at 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
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 at gmail.com> wrote:> On 1 June 2018 at 15:08, Christofer Bogaso <bogaso.christofer at 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 at 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]]