Created
November 4, 2014 22:52
-
-
Save bran921007/c8d9a7bf1321c3a39da6 to your computer and use it in GitHub Desktop.
Scrapping Tasa del dolar Banreservas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$todo = file_get_contents("http://www.banreservas.com.do/Pages/ComercialDavidOrtiz.aspx"); | |
//echo "<textarea>".$todo."</textarea>"; | |
$inicio = strpos($todo, 'id="ctl00_m_g_a6605a42_9d12_436e_a07a_d862f308ba90_ctl00_cpUS"'); | |
//echo $inicio; | |
$precio = substr($todo, $inicio+63, 100); | |
$precio = substr($precio, 0, strpos($precio,'">')); | |
echo $precio; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment