stock quotes off the web, py style

Mike McClain mike.junk.46 at att.net
Wed May 16 12:21:53 EDT 2018


On Wed, May 16, 2018 at 02:33:23PM +0200, Friedrich Rentsch wrote:
<snip>
>
> I didn't know the site you mention. I've been getting quotes from
> Yahoo daily. The service they discontinued was for up to 50 symbols
> per page. I now parse a separate page of some 500K of html for each
> symbol! This site is certainly more concise and surely a lot faster.

    Thank you sir for the response and code snippet.
As it turns out iextrading.com doesn't supply data on mutuals which
are the majority of my portfolio so they are not goimng to do me much
good after all.
    If you please, what is the URL of one stock you're getting from
Yahoo that requires parsing 500K of html per symbol? That's better
than not getting the quotes.
    If AlphaVantage ever comes back up, they send 100 days quotes for
each symbol and I only use today's and yesterday's, but it is easy to
parse.

> You would do multiple symbols in a loop which you enter with an open
> urllib object, rather than opening a new one for each symbol inside
> the loop.

    At the moment I can't see how to do that but will figure it out.
Thanks for the pointer.

Mike
--
"There are three kinds of men. The ones who learn by reading. The
few who learn by observation. The rest of them have to pee on the
electric fence for themselves." --- Will Rogers



More information about the Python-list mailing list