This link has been bookmarked by 351 people . It was first bookmarked on 28 Mar 2008, by iwata motonori.
-
16 Apr 16
-
24 Mar 15
-
18 Dec 14
-
10 Nov 14
-
19 Sep 14
-
03 Jul 14
-
30 May 14
-
27 May 14
-
23 May 14
-
06 May 14
-
11 Feb 14
-
29 Jan 14
Александр ТрофимовA simple PHP HTML DOM parser written in PHP5+, supports invalid HTML, and provides a very easy way to handle HTML elements.
-
26 Jan 14
-
21 Jan 14
-
21 Nov 13
-
27 Sep 13
-
22 Sep 13
-
16 Sep 13
-
26 Jul 13
-
09 Jul 13
-
01 May 13
Jeff GGod I love PHP Simple HTML DOM Parser http://t.co/6kBEollNS1
-
13 Apr 13
-
12 Apr 13
-
10 Apr 13
-
29 Mar 13
-
20 Feb 13
-
05 Feb 13
-
03 Feb 13
-
09 Dec 12
-
27 Nov 12
-
19 Oct 12
-
08 Oct 12
-
05 Sep 12
-
30 Jul 12
-
29 Jul 12
-
25 Jul 12
Eric PhetteplacePHP library for DOM scraping. Uses CSS selectors like jQuery does, makes it pretty easy to grab relevant data.
-
26 May 12
-
12 May 12
-
19 Apr 12
-
15 Mar 12
-
19 Feb 12
-
04 Feb 12
-
20 Jan 12
han uman"// Create DOM from URL
$html = file_get_html('http://slashdot.org/');
// Find all article blocks
foreach($html->find('div.article') as $article) {
$item['title'] = $article->find('div.title', 0)->plaintext;
$item['intro'] = $article->find('div.intro', 0)->plaintext;
$item['details'] = $article->find('div.details', 0)->plaintext;
$articles[] = $item;
}
print_r($articles); " -
alterr boxo"// Create DOM from URL
$html = file_get_html('http://slashdot.org/');
// Find all article blocks
foreach($html->find('div.article') as $article) {
$item['title'] = $article->find('div.title', 0)->plaintext;
$item['intro'] = $article->find -
14 Jan 12
-
05 Jan 12
-
03 Jan 12
-
31 Dec 11
Eric Alvarado// Create DOM from URL or file
$html = file_get_html('http://www.google.com/');
// Find all images
foreach($html->find('img') as $element)
echo $element->src . '<br>';
// Find all links
foreach($html->find('a') as $element)
echo $element->href . '<br>'; -
30 Nov 11
-
08 Nov 11
-
26 Oct 11
-
25 Oct 11
-
24 Oct 11
-
28 Sep 11
-
27 Sep 11
-
06 Sep 11
-
02 Sep 11
-
26 Aug 11
-
18 Aug 11
-
09 Aug 11
-
31 Jul 11
Mats Kling$html = file_get_html('http://slashdot.org/');
// Find all article blocks
foreach($html->find('div.article') as $article) {
$item['title'] = $article->find('div.title', 0)->plaintext;
$item['intro'] = $article->find('div.intro', 0)->plaint -
17 Jul 11
-
08 Jul 11
-
06 Jul 11
-
04 Jul 11
-
03 Jul 11
-
15 Jun 11
godlovesuglyL DOM parser written in PHP5+ let you manipulate HTML in a very easy way!
Require PHP 5+.
Supports invalid HTML.
Find tags on an HTML page with selectors just like jQuery.
Extract contents from HTM -
14 Jun 11
-
31 May 11
-
27 May 11
-
- A HTML DOM parser written in PHP5+ let you manipulate HTML in a very easy way!
- Require PHP 5+.
- Supports invalid HTML.
- Find tags on an HTML page with selectors just like jQuery.
- Extract contents from HTML in a single line.
-
// Create DOM from string
$html = str_get_html('<div id="hello">Hello</div><div id="world">World</div>');
$html->find('div', 1)->class = 'bar';
$html->find('div[id=hello]', 0)->innertext = 'foo';
echo $html; // Output: <div id="hello">foo</div><div id="world" class="bar">World</div>
-
-
25 May 11
-
23 May 11
-
16 May 11
-
09 May 11
-
06 May 11
-
28 Apr 11
-
26 Apr 11
-
18 Apr 11
-
15 Apr 11
-
14 Apr 11
-
12 Apr 11
-
10 Apr 11
-
08 Apr 11
-
10 Mar 11
-
28 Jan 11
-
27 Jan 11
-
12 Jan 11
-
15 Dec 10
-
06 Dec 10
-
04 Dec 10
-
19 Nov 10
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.