File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/API/Finance/DemoTwo.php
Back
<?php /*include_once("simple_html_dom.php"); $html = file_get_html("https://chartink.com/screener/potential-breakouts"); echo $html; $tbody = $html->find('table',1)->find('tbody',0)->find('tr'); echo '<table border="1">'; foreach($tbody as $tr) { if (strpos($tr->find('td',2)->plaintext, date('Y')) !== false) { echo '<tr>'; echo '<td>'.$tr->find('td',0)->plaintext.'</td>'; echo '<td>'.$tr->find('td',1)->plaintext.'</td>'; echo '<td>'.$tr->find('td',2)->plaintext.'</td>'; echo '<td>'.$tr->find('td',3)->plaintext.'</td>'; echo '</tr>'; } } echo '</table>'; */ $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://chartink.com/screener/process?scan_clause=(%20%7Bcash%7D%20(%20latest%20close%20*%201.05%20%3E%20latest%20max(%20200%20,%20latest%20high%20)%20and%20latest%20max(%2030%20,%20latest%20high%20)%20%3C=%2030%20days%20ago%20max(%20200%20,%20latest%20high%20)%20and%20latest%20volume%20%3E%20latest%20sma(%20volume,50%20)%20and%20latest%20close%20%3E%2090%20)%20)%20', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_HTTPHEADER => array( 'x-requested-with: XMLHttpRequest', 'x-csrf-token: 0oY95nhQ1SC8SkXn7ydIvbWq7UEdWM0e2iOuLLDs', 'cookie: _ga=GA1.2.463064153.1641484374; _gid=GA1.2.1433656987.1641617950; _gat=1; XSRF-TOKEN=eyJpdiI6IkpYOElJVktzZDlEZmtaRDhyeGJOYWc9PSIsInZhbHVlIjoiYzJNRVJSa3BrVWhJaTdRWGd2N2w2YktMT3Zka0ZsVmJxdnR1TGRsZ2E2TVFJd2FCR2xpTXNENVwvbFVyU0ZWMHAiLCJtYWMiOiI5OGU2NGJlOTI4Y2NhNjAzNDkzNTdmMjI0NjcxNDFmZDE5NjQ0ZmQ2NGJjNWQxMGZlZWY4NmMzMWViYTdhN2ZjIn0%3D; ci_session=eyJpdiI6Im9jMEc5bDlWSVY0dlwveDFhMUVXM1RBPT0iLCJ2YWx1ZSI6ImZWVHJjdko2bEplYk4rMG9IWTk2ZHlxblprZlBYSzZLelhZaGdzdVkxWFBmWCtFVU1nVkM3K1FudWFWQUx2dGYiLCJtYWMiOiI2OTEyMTUyZjNhZmFhYjg3YWZhM2JmZTg2MmYzYThkNTE0YmQyNjI5NTYyNWVlZWU5MmRjZjI1M2YzNDA3Yjg4In0%3D' ), )); $response = curl_exec($curl); curl_close($curl); echo $response; ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings