yanwong / ganon

Automatically exported from code.google.com/p/ganon
0 stars 0 forks source link

The parser don't work for every url #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
ganon.php (html_parser) don't work with urls like this: 
http://www.google.it/language_tools

Maximum execution time of 30 seconds exceeded in ganon.php on line 247

PHP Version 5.3.8
last version of ganon.php

Original issue reported on code.google.com by mrdayale...@gmail.com on 1 Dec 2011 at 5:29

GoogleCodeExporter commented 8 years ago
Could you post a snippet of code that reproduces this bug?

This seems to work for me:

$html = file_get_dom('http://www.google.it/language_tools');
echo $html('#gt-appname', 0)->getInnerText();

Original comment by niels....@gmail.com on 3 Dec 2011 at 11:23

GoogleCodeExporter commented 8 years ago

Original comment by niels....@gmail.com on 5 Feb 2012 at 10:13

GoogleCodeExporter commented 8 years ago
I'm sorry, I have not so much time to reproduce the issue, but i get error in 
that case.

Original comment by mrdayale...@gmail.com on 2 Mar 2012 at 9:23

GoogleCodeExporter commented 8 years ago
add /index.html at the end of the url . in the above case 
http://www.google.it/language_tools/index.html. 

Original comment by neupanem...@gmail.com on 18 Feb 2013 at 3:01