how to extract data from finance.yahoo.co to LibreOffice
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Your request is a bit mysterious. Which link do you mean (why don't you just copy it here?), and what do you mean by "duplicate"? LibreOffice is able to open spreadsheet in many formats; what is the format of the Yahoo spreadsheet?
downloading stock prices - Dow Jones Spreadsheet link (Lotus 123)
Back in the 80's I used to run Dow Jones Spreadsheet Link to automatically download stock prices to my Lotus spreadsheets. Since windows and Excel Dow Jones dropped support for Spreadsheet Link. I simply want to know if there means by which my spreadsheet data can be auto updated as the list is quite extensive.
Thank you for you interest in this question. Formerly the info was put out by Yahoo as CSV and Lotus 123 or afterwards Excel would parse into their respective native formats. There is conflicting info. Some say it cannot be done since Verizon bought Yahoo. Others say yes you can but there is no specimen to use as a building block or Excel equivalent formula operators in Calc. Bit confusing. If it could be done in Lotus in 1984 and Excel as recently as 2018, what are the key formula phrases in Calc?
Is there a deficiency in Calc or is it simply a block imposed by Verizon?. There is an Ozzie site that says they can make it still work. There are blogs that say you can't. And a shortage of formula vocabulary in calc to mimic Excel formulas.
With KMyMoney you can download stock prices. This also points to the possible existence of a Linux package (independent of KMyMoney but incorporated into KMyMoney) for downloading stock prices. Below is a screenshot, that may be of use to you as a starting point. I would expect that a great deal of experimentation may still be necessary to get it to work with Calc. Good Luck.
----------------------------------------------------------------------------- PS: Since posting, I saw that in Calc, under "sheet", there is an option "Link to External Data". That may offers some opportunities.
Look to this article for some guidance: Use Yahoo! Finance To Pull Stock Information Into Excel. This article notes that: "As of Q3 2017, the Yahoo! Finance capabilities in Excel have been disabled (by Yahoo!, aka Verizon).". The author offers a VBA Macro alternative as a means of downloading stock prices.
The author offers a VBA Macro alternative as a means of downloading stock prices.
Interesting. I wonder if it is up to date and still works despite all the changes that Yahoo keeps making.
What language should it be re-written in to run under Linux please?
I would like to bulk-downloaded historical stock price data, especially those based in the UK. Although the last time I investigated there were one or two programs/scripts that could do this in Windows, it would be too fiendishly difficult and practically impossible for me to write something similar under Linux.
Sidenote - there is or was a website based in eastern europe that had available for downloading a very large zip file that was a big collection of historic stock price data. Unfortunately by the time I found out about it they had stopped making it available. Although that webpage was archived by archive dot org, only a small part of that file would download, broken. If anyone knows where this big file is currently available, it would be like finding the Holy Grail.
What language should it be re-written in to run under Linux please?
I hadn't thought about the VBA to Linux conversion implication. After a quick search, I found: XOJO The Modern Alternative to Visual Basic. I have no idea if it is "good" or "bad". Claims to be Linux compatible. Could be other similar packages too.
I started to experiment with the Python guidance from Eryk Lewinson. It did not go well. Evidently, the module pandas, on my computer, is only available for Python IDLE version 2.7. The other two modules failed to load using: pip install
For some reason, could not edit my prior post to add the possibility of using bash to get stock price downloads since my attempt with Python seems to have failed. Here is a random bash script that may work-out. Bash script for Yahoo Finance historical data. Works with new cookie-based authentication. I retrospect, I've been working on developing my bash skills so this would be a good project.
------------------------------------------------------------------------ Update: 6/15/2020 - The bash script works, but I have not been able to decipher how it works or to modify it. Two minor points. You need to verify, before executing the program, that the stock market was open on that day. The date format is: 2020-06-10 (YYYY-MM-DD). Other date formats may also work, but I just used this one approach. (There are a lot of unnecessary spaces that that need to be deleted. They do show-up in Bluefish.)
Search for "CrumbStore" in various forms, did generate hits; but it appears from the responses of many that how the data is scraped from Yahoo finance has changed periodically. One sample post: Cannot scrape crumb from yahoo finance
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.