Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require "phpQuery-onefile.php";
- $url = 'https://privatbank.ua/ru';
- $file = file_get_contents($url);
- echo $file;
- // $pattern = '#<table class="kurs_table_small.+?</table>#s';
- // preg_match($pattern, $file, $matches);
- // print_r($matches);
- // $doc = phpQuery::newDocument($file);
- // $tbl = $doc->find('.kurs_table_small > tbody');
- // foreach ($doc->find('tr') as $tr) {
- // $pq = pq($tr);
- // echo $pq->text();
- // }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement