Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Scrape From Webpage and extract real time stock prices

by ww (Archbishop)
on Dec 04, 2012 at 21:12 UTC ( #1007157=note: print w/replies, xml ) Need Help??

in reply to Scrape From Webpage and extract real time stock prices

  1. "... I would print the lines here, but it's html which the brower wants to print as ..."
    So, consider the "html" to be code (which it is) and wrap it in <c>...html here </c> tags.*
    * ie, read the directions, in this case those surrounding the text entry box; Writeup Formatting Tips and or Markup in the Monastery
  2. Caveat: I have NOT attempted to read's TOS </caveat>.   Have you? Beware practices that may violate the provider's Terms of Service.
  3. Does offer an API? If so, use it in preference to home-rolled.
  • Comment on Re: Scrape From Webpage and extract real time stock prices

Replies are listed 'Best First'.
Re^2: Scrape From Webpage and extract real time stock prices
by tbone654 (Beadle) on Dec 04, 2012 at 21:36 UTC

    I'm using it to learn how first... And I'm trying to keep it as generic as possible... Would probably use a module, but I don't own the server either, so I was thinking of how to use brute force before I roll it into the final product...

    I put it in <c> tags, but it doesn't format well...

      Maybe I misunderstood. Is your data source your site? If so, ignore my observations about TOS; if not, I repeat, "beware!"

      The balance of your first graf suggests that is the IP of some other entity, but if that entity approves of you using their data, they likely have a published API. Ask. And if they don't approve? Well refer to para 1.

      How did using
      <c><table width="34%" border="1"> <tr> <td>aaa</td><td>bbb ccc ddd></td><td>2012-12-04</td><td>foo</td><tr> ...</table> -- ie, html here</c>
      fail? Note that the closing tag is -- as is customary (or, as here, required) </c> ... with a slash!

      Even raw html renders so long as it's of a reasonable width (and within the limits allowed by the fact that PM's html is restricted):

      a a aab bb2012-12-04foo
      12345 0987654321zyx20121204 16:49bar

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007157]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2018-04-21 11:29 GMT
Find Nodes?
    Voting Booth?