Парсинг страницы, генерируемой javascript'ом
87 сообщений
#12 лет назад
Парсинг страницы генерируемой javascript'ом.Интересует вот эта страница ссылка
Кто-то может подсказать как получить исходный текст страницы генерируемой на js в переменную PHP?
Исходные кода страницы:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru" xmlns:fb="http://ogp.me/ns/fb#" >
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" href="clients/parimatch/css/default.css" type="text/css" media="screen" /><link rel="stylesheet" href="clients/parimatch/css/print.css" type="text/css" media="print" /><!--><link rel="stylesheet" href="clients/parimatch/css/explorer.css" type="text/css" /><!-->
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/jquery.ui.core.min.js"></script>
<script type="text/javascript" src="js/s4plugins.min.js?1350459418"></script>
<!-- these plugins has not yet been included in the minified edition -->
<!-- These plugins must be minified separately -->
<script type="text/javascript" src="js/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="js/s4.min.js?1350459418"></script>
<script type="text/javascript" src="js/jquery.jdMenu.min.js"></script>
<!-- <script type="text/javascript" src="js/swfobject.js"></script> -->
<script type="text/javascript" src="js/jquery.ui.position.min.js"></script>
<link rel="stylesheet" href="sphinxstatic/jquery/jquery-ui-1.8.6.custom.css" type="text/css" />
<script type="text/javascript" src="js/search.php?clientid=188&default=ru"></script>
<script type="text/javascript" src="js/swfobject.js"></script><script type="text/javascript" src="clients/parimatch/js/default.js"></script>
<script type="text/javascript">
</script>
<!-->
<script type="text/javascript" src="js/ie6action.js"></script>
<!-->
<script type="text/javascript">
$(document).ready(function() {
s4 = new S4;
s4.init( {
id: 1827,
gatracker: 'UA-26131112-3',
language: 'ru', iframeresize: 0, iframe_protocol: 'http', clientid: 188},
1
);
});
</script>
<noscript>
<p style="position: absolute; font-size: 16px; background: white; color: #a11; padding: 1em; border-radius: 0.3em; top: 90px; left: 50%; margin-left: -350px; width: 700px; z-index: 1000;">
JavaScript might have been turned off. Please check your browser settings in order to access and use this site.</p>
</noscript>
<title>Statistics</title>
</head>
<body>
<div id="nodewrap" class="language-ru">
<div id="toivo1"><div id="toivo2"></div></div>
<div id="node_1" ></div>
</div>
<div id="overlay"></div>
<div id="loader"><div></div></div>
<div id="success"></div>
<div id="error"></div>
<div id="errortext"></div>
<div id="poweredbylogo"></div>
<script type="text/javascript">
host = window.location.hostname;
if(host == 's4dev.betradar.com' || host == '85.126.56.115'){
if($('#node_1').length > 0){
$('#node_1').append('<div id = "demo-label"></div>');
$('#demo-label').click(function(){
$('#demo-label').hide();
});
}
}
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
</body>
</html>