Comments (8)
@3aboooody56
Thanks for the info.
It would be appreciated if you could create a pull request. Please note that we ask to update "Changes" and "Modules-README.yml" to save us some housecleaning time when preparing to push a release to CPAN. As always, check for a clean execution of the test script and update any symbols that are no longer traded.
from finance-quote.
The changes I mentioned earlier partially fix the Bloomberg module. After testing the changes, the module fails to retrieve the prices for US / USD-based stocks (works for other stocks). The HTML document/webpage is different for US stocks - at least the HTML elements that contain the stock price are different. I tried fixing this by having two separate look_down
method calls for the two cases.
But I am currently running into another issue with this other HTML webpage for US stocks where the HTML page content that is pulled by the module (Opened as a text file) is missing the price or at least where it should be:
<div class="currentPrice_currentPriceContainer__nC8vw">
<div class="priceDelta_price__Acvmw">
<span class="priceDelta_black__KE45q"></span>
When opening that same HTML page content that was pulled by the module in a browser, the price shows up in the HTML content as follows:
<div class="currentPrice_currentPriceContainer__nC8vw">
<div class="priceDelta_price__Acvmw">
<span class="priceDelta_black__KE45q">141.18</span>
This was the case for GOOGL:US.
Would appreciate any insight as to why this happens and what can be done about it. Thanks.
from finance-quote.
@3aboooody56
Sorry, but I currently don't have the time to troubleshoot the module. Apparently Bloomberg has made changes to the structure of the web pages that break the parsing logic in the module. There is a similar issue with the Fidelity.pm that was discovered 6 months ago.
from finance-quote.
Would appreciate any insight as to why this happens and what can be done about it. Thanks.
Looks like it fills in the price using some javascript. Came across the exact same issue when looking at this yesterday. Fortunately, there is a giant blob of JSON embedded as a script in the page, from which it is easy to extract the data. PR incoming soon.
from finance-quote.
Thanks for the fix.
As a GnuCash user, how can I have it use a modified version of F: :Q instead of having to wait for the next release?
from finance-quote.
- Go to the pull request at #362
- Select the "Files changed" tab
- In the code tree view on the left hand side, click on the file of interest, "Bloomberg.pm"
- In the main part of the window, from the menu ("...") for that file, select "View file"
- When the modified file is shown, click the "Download raw file" option (to the right of the "Raw" button)
- Replace the file "Bloomberg.pm" in your current installation with the one you just downloaded
That should do it.
from finance-quote.
Thanks, that worked. Took me a bit to find the version of Perl and F::Q that GnuCash was using.
from finance-quote.
Thanks, that worked. Took me a bit to find the version of Perl and F::Q that GnuCash was using.
That is typically why I don't typically even attempt to answer questions about installing individual modules. For those with experience in Perl it is simple. But it is possible to find multiple instances of F::Q installed.
from finance-quote.
Related Issues (20)
- YahooJSON Disabled for EU IP Addresses HOT 41
- YahooWeb failing with "Header line too long" error HOT 2
- YahooJSON.pm is giving invalid cookie/crumb again HOT 5
- Restore Fool.pm Module HOT 1
- Unable to use SIX module from GnuCash HOT 3
- update fails on Windows
- MarketWatch Module Not Working HOT 1
- Add Error Handling to YahooJSON.pm
- NZX Website Update - NZX Quotes no longer working HOT 6
- ASX Cleanup HOT 1
- MorningstarAU Module not working HOT 3
- BVB Module Not Working HOT 1
- NSE stock prices not updating since July 8 2024 HOT 4
- deleted HOT 2
- Finance::Quote->fetch( dont work on me HOT 1
- Comdirect Module Not Working
- OnVista Module not working HOT 5
- Price retrieval failed HOT 1
- The comma/dot is missing in bourso HOT 6
- Finance::Quote 1.61 errors with 401 Unauthorised using yahoo_json on non-US stocks. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from finance-quote.