[R] Please assist me to download this data

David Winsemius dwinsemius at comcast.net
Tue Jul 26 00:22:25 CEST 2016


> On Jul 25, 2016, at 1:30 PM, Christofer Bogaso <bogaso.christofer at gmail.com> wrote:
> 
> Just have tried this :
> 
> library(RCurl)
> x = postForm("https://www.amfiindia.com/net-asset-value/nav-history",
> 'NAV Date' = "25-Jul-2016")
> 
> However doesnt look like I get valid data, because I still can get
> result for some future date as well!!
> 
> Any other option I should try?

This is not an R specific. It is simply reading HTML, XML, or JavaScript.

If you are unable to specify a particular set of values that delivers this during a human mediated interaction, then you should contact the owners of the webpage rather posting here. They have a "Contact Us" page.


-- 
David.


> 
> On Tue, Jul 26, 2016 at 1:53 AM, boB Rudis <bob at rudis.net> wrote:
>> Valid parameters for the form would be super-helpful.
>> 
>> On Mon, Jul 25, 2016 at 3:52 PM, Ulrik Stervbo <ulrik.stervbo at gmail.com> wrote:
>>> Hi Christofer,
>>> 
>>> If you can load all the data into R you don't need to query the website -
>>> you simply filter the data by your dates.
>>> 
>>> I think that's the easiest solution.
>>> 
>>> Best wishes,
>>> Ulrik
>>> 
>>> Christofer Bogaso <bogaso.christofer at gmail.com> schrieb am Mo., 25. Juli
>>> 2016 21:30:
>>> 
>>>> Hi Ulrik, Thanks for your reply. I am aware of that link and this is a
>>>> good option. However with this approach, I can not get Data
>>>> historically. I would like to create some TS in R for each MF there.
>>>> 
>>>> Any other idea?
>>>> 
>>>> Thanks,
>>>> 
>>>> On Tue, Jul 26, 2016 at 12:53 AM, Ulrik Stervbo <ulrik.stervbo at gmail.com>
>>>> wrote:
>>>>> The easiest might be to download the entire dataset and filter it
>>>>> appropriately. If I follow your link and press Download, I get the
>>>> option to
>>>>> "Download Complete NAV Report in Text Format" and will result in this:
>>>>> http://portal.amfiindia.com/NAVReport.aspx?type=0
>>>>> 
>>>>> It is not the easiest format to get into R, and you might have to
>>>>> pre-process it.
>>>>> 
>>>>> Best,
>>>>> Ulrik
>>>>> 
>>>>> On Mon, 25 Jul 2016 at 20:37 Christofer Bogaso <
>>>> bogaso.christofer at gmail.com>
>>>>> wrote:
>>>>>> 
>>>>>> Hi again,
>>>>>> 
>>>>>> I am trying to find some way to download all data historically from
>>>>>> this website "https://www.amfiindia.com/net-asset-value/nav-history".
>>>>>> 
>>>>>> Basically what I am trying to do is, I shall have a range of dates and
>>>>>> for each date I need to download entire dataset programmatically.
>>>>>> 
>>>>>> Really appreciate if experts here help.
>>>>>> 
>>>>>> Thanks,
>>>>>> 
>>>>>> ______________________________________________
>>>>>> 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]]
>>> 
>>> ______________________________________________
>>> 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.
> 
> ______________________________________________
> 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.

David Winsemius
Alameda, CA, USA



More information about the R-help mailing list