Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I resent the pessimism and I resent the mention of that dreaded python for any use really. As if it is the standard technology (standard it may has become, but technology it isn't). Albeit, my resentment is in a friendly way :)

So, in short, do not despair.

What stops you from getting a yummy, juicy json chunk from this endpoint of Yahoo's finance services: https://query1.finance.yahoo.com/v10/finance/quoteSummary/API?modules=financialData ???? Why can't you scrape that with Perl (assuming you want to)?

In absence of a better link (API is also a stockmarket symbol, LOLz) this will get you started (you can safely ignore their recommended tools and use wget or curl from the CLI to start, and then LWP::UserAgent and JSON for cooking a super-duper, Perl stock scrapper and all that without parsing ANY html whatsoever): https://syncwith.com/yahoo-finance/yahoo-finance-api

I do not want to take the fun from your hands so I will not supply any working code, but if you need more help, let us know,

bw bliako

Edit: and here is an endpoint providing endless pessimism: https://query1.finance.yahoo.com/v7/finance/quote?symbols=GBPUSD=X&fields=regularMarketPrice


In reply to Re: Current State of Financial Data Available to Perl by bliako
in thread Current State of Financial Data Available to Perl by justin423

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found