-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yahoo Japan Error in getSymbols.yahooj XML content does not seem to be XML: '1' #312
Comments
Thanks for the report! This may be related to #310. Please install the latest from this repo and see if that fixes the problem for you. I just tried that and it worked for me. |
Thanks a ton! |
No worries! It only took me a few minutes to test. And I'm happy it's already fixed! |
Not sure if you tried this, but sometimes doing an issue search on GitHub can help. |
Dear @joshuaulrich |
Hi @tchevri. I've been working on this. Could you give me a ticker that has a split and dividend(s)? That will help me test the code. |
I was using these lines of code dear @joshuaulrich
So you can see, for now, I reverted to yahoo. |
Just as an FYI, this is the error message I am getting, I see I did not include it earlier, apologies:
I am running |
Yahoo Finance Japan changed the site HTML, causing getSymbols.yahooj() to error. Update the URL and HTML table parsing. It doesn't look like the table contains stock splits or dividends now, so that code has been removed. It will probably error when/if they add splits and dividends to the table. I'll deal with that when/if it happens. See #312.
@tchevri I just pushed a potential fix to the |
Sorry for the big noob question @joshuaulrich .
so sorry for not knowing. |
Try |
It took a very long time to run (not sure if I am delusional, but it seems much much longer than before!), but most importantly it works without error!
|
It wasn't working again...I realized it's because i had my vpn on.
Not much you can do... I take it. Here's the code:
Solution: |
Description
I have a piece of code that used to run without issues for many years and here is a great opportunity to extend a warm public thank you for your awesome code (and all the help you have provided to so many folks across so many forums).
I just ran it for the first time in a few months (it was working fine in March) and I received:
Expected behavior
Usually, this call creates a variable
YJ1306.T
with the downloaded series.Minimal, reproducible example
New section, if I may: what I tried!
put
debug()
around the function call. I can see that the function callsfdoc <- XML::htmlParse(URL)
whereURL
points to Yahoo Japan historical dataThis looks correct, so I am a little shocked this call seems to be failing... Looks fine to me.
This said, when I tried to browse directly to the security historical data page, I landed here. I am not sure this is relevant, but best is to let you decide, since you would know.
MUCH appreciated any help.
Session Info
The text was updated successfully, but these errors were encountered: