Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?php
  2. require "phpQuery-onefile.php";
  3.  
  4. $url = 'https://privatbank.ua/ru';
  5. $file = file_get_contents($url);
  6.  
  7. echo $file;
  8. // $pattern = '#<table class="kurs_table_small.+?</table>#s';
  9. // preg_match($pattern, $file, $matches);
  10. // print_r($matches);
  11.  
  12. // $doc = phpQuery::newDocument($file);
  13. // $tbl = $doc->find('.kurs_table_small > tbody');
  14. // foreach ($doc->find('tr') as $tr) {
  15. //  $pq = pq($tr);
  16. //  echo $pq->text();
  17. // }
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement