<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Easy Screen Scraping in PHP with the Simple HTML DOM Library</title>
	<atom:link href="http://www.developertutorials.com/tutorials/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.developertutorials.com/tutorials/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/</link>
	<description>Web Development and Web Design Information Resources Helping You Build Great Websites!</description>
	<lastBuildDate>Sun, 29 May 2011 21:18:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Chea leb</title>
		<link>http://www.developertutorials.com/tutorials/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/comment-page-1/#comment-1417</link>
		<dc:creator>Chea leb</dc:creator>
		<pubDate>Sun, 31 Jan 2010 10:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/#comment-1417</guid>
		<description>/**
* An example of using remote scraping sessions.
*
* @author       Brent Wenerstrom1
*/

using System;
using System.Collections;
using Screen scraper;

public class Data Set Remote Scraping Session Example
&#123;
/**
* The entry point.
*/
public static void Main&#040; string&#091;&amp;#93args&#041;
&#123;
try
&#123;
// Create a remote Session to communicate with the server.
Remote Scraping Session remote Session = new Remote Scraping Session&#040; &quot;Slashdot&quot; &#041;;

// Scraper.
remote Session.Scrape&#040;&#041;;

// Get the data.
// If the returned value is null an exception will be thrown later.
Data Set data Set = &#040; Data Set &#041;remote Session.Get Variable&#040; &quot;DATA SET&quot; &#041;;

// Temporarily holds data records.
Data Record template Data Record = null;

Console.Write Line&#040; &quot;============================================================================&quot; &#041;;

// Iterate through the data records.

for&#040; I Enumerator iterator = data Set.All Data Records.Get Enumerator&#040;&#041;; iterator.Move Next&#040;&#041;; &#041; &#123;
&#123;
template Data Record = &#040; Data Record &#041;iterator.Current;

// Enumerate through the data record, outputting each of the fields.
for&#040; I Dictionary Enumerator en = template Data Record.Get Enumerator&#040;&#041;; en.Move Next&#040;&#041;; &#041;
&#123;
Console.Write Line&#040; en.Key + &quot;=&quot; + en.Value &#041;;
&#125;
Console.Write Line&#040; &quot;============================================================================&quot; &#041;;
&#125;

&#125;
// Very important! Be sure to disconnect from the server.
remote Session.Disconnect&#040;&#041;;
&#125;
catch&#040; Exception e &#041;
&#123;
Console.Write Line&#040; e &#041;;
&#125;
&#125;
&#125;</description>
		<content:encoded><![CDATA[<p>/**<br />
* An example of using remote scraping sessions.<br />
*<br />
* @author       Brent Wenerstrom1<br />
*/</p>
<p>using System;<br />
using System.Collections;<br />
using Screen scraper;</p>
<p>public class Data Set Remote Scraping Session Example<br />
&#123;<br />
/**<br />
* The entry point.<br />
*/<br />
public static void Main&#40; string&#91;&amp;#93args&#41;<br />
&#123;<br />
try<br />
&#123;<br />
// Create a remote Session to communicate with the server.<br />
Remote Scraping Session remote Session = new Remote Scraping Session&#40; &#8220;Slashdot&#8221; &#41;;</p>
<p>// Scraper.<br />
remote Session.Scrape&#40;&#41;;</p>
<p>// Get the data.<br />
// If the returned value is null an exception will be thrown later.<br />
Data Set data Set = &#40; Data Set &#41;remote Session.Get Variable&#40; &#8220;DATA SET&#8221; &#41;;</p>
<p>// Temporarily holds data records.<br />
Data Record template Data Record = null;</p>
<p>Console.Write Line&#40; &#8220;============================================================================&#8221; &#41;;</p>
<p>// Iterate through the data records.</p>
<p>for&#40; I Enumerator iterator = data Set.All Data Records.Get Enumerator&#40;&#41;; iterator.Move Next&#40;&#41;; &#41; &#123;<br />
&#123;<br />
template Data Record = &#40; Data Record &#41;iterator.Current;</p>
<p>// Enumerate through the data record, outputting each of the fields.<br />
for&#40; I Dictionary Enumerator en = template Data Record.Get Enumerator&#40;&#41;; en.Move Next&#40;&#41;; &#41;<br />
&#123;<br />
Console.Write Line&#40; en.Key + &#8220;=&#8221; + en.Value &#41;;<br />
&#125;<br />
Console.Write Line&#40; &#8220;============================================================================&#8221; &#41;;<br />
&#125;</p>
<p>&#125;<br />
// Very important! Be sure to disconnect from the server.<br />
remote Session.Disconnect&#40;&#41;;<br />
&#125;<br />
catch&#40; Exception e &#41;<br />
&#123;<br />
Console.Write Line&#40; e &#41;;<br />
&#125;<br />
&#125;<br />
&#125;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: streetparade</title>
		<link>http://www.developertutorials.com/tutorials/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/comment-page-1/#comment-1416</link>
		<dc:creator>streetparade</dc:creator>
		<pubDate>Mon, 17 Aug 2009 19:33:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/#comment-1416</guid>
		<description>Is there also a function to get the largest text from html body ?</description>
		<content:encoded><![CDATA[<p>Is there also a function to get the largest text from html body ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Akshay</title>
		<link>http://www.developertutorials.com/tutorials/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/comment-page-1/#comment-1415</link>
		<dc:creator>Akshay</dc:creator>
		<pubDate>Tue, 04 Aug 2009 19:23:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/#comment-1415</guid>
		<description>I have created a specific WordPress plugin using phpQuery and cURL to place web scraps inside your wordpress posts, pages or sidebar. Check http://webdlabs.com/projects/wp-web-scraper/ for a demo or download the plugin from http://wordpress.org/extend/plugins/wp-web-scrapper</description>
		<content:encoded><![CDATA[<p>I have created a specific WordPress plugin using phpQuery and cURL to place web scraps inside your wordpress posts, pages or sidebar. Check <a href="http://webdlabs.com/projects/wp-web-scraper/" rel="nofollow">http://webdlabs.com/projects/wp-web-scraper/</a> for a demo or download the plugin from <a href="http://wordpress.org/extend/plugins/wp-web-scrapper" rel="nofollow">http://wordpress.org/extend/plugins/wp-web-scrapper</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phpfan</title>
		<link>http://www.developertutorials.com/tutorials/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/comment-page-1/#comment-1414</link>
		<dc:creator>phpfan</dc:creator>
		<pubDate>Sat, 02 May 2009 21:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/#comment-1414</guid>
		<description>is there anyway to get the html source of DOM which is generated from ajax?
{ajax function goes here
document.getElementById(&#039;div_id&#039;).innerHTML= something;
}

html here

div id=&quot;div_id&quot;(HERE IS WHAT I WANT TO GET)

php goes here
need to do something here to get (HERE IS WHAT I WANT TO GET)....</description>
		<content:encoded><![CDATA[<p>is there anyway to get the html source of DOM which is generated from ajax?<br />
{ajax function goes here<br />
document.getElementById(&#8216;div_id&#8217;).innerHTML= something;<br />
}</p>
<p>html here</p>
<p>div id=&#8221;div_id&#8221;(HERE IS WHAT I WANT TO GET)</p>
<p>php goes here<br />
need to do something here to get (HERE IS WHAT I WANT TO GET)&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://www.developertutorials.com/tutorials/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/comment-page-1/#comment-1413</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Fri, 01 May 2009 20:04:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/#comment-1413</guid>
		<description>Although a little late, hopefully Anar might make it back and see this post. If you&#039;re having problems with being blocked because of the UserAgent, you could use curl if your server has it to pull the HTML. curl offers params that allow you to set the UserAgent, set just about any header you want, pass cookies back and forth, follow redirects, etc.

This class is fantastic. It helped me out instantly on my test and from the first pass, it looks like it&#039;s very easy to use.</description>
		<content:encoded><![CDATA[<p>Although a little late, hopefully Anar might make it back and see this post. If you&#8217;re having problems with being blocked because of the UserAgent, you could use curl if your server has it to pull the HTML. curl offers params that allow you to set the UserAgent, set just about any header you want, pass cookies back and forth, follow redirects, etc.</p>
<p>This class is fantastic. It helped me out instantly on my test and from the first pass, it looks like it&#8217;s very easy to use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.developertutorials.com/tutorials/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/comment-page-1/#comment-1412</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sat, 18 Apr 2009 04:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/#comment-1412</guid>
		<description>What&#039;s the advantage of using this library over the DOM built into PHP?</description>
		<content:encoded><![CDATA[<p>What&#8217;s the advantage of using this library over the DOM built into PHP?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Everett</title>
		<link>http://www.developertutorials.com/tutorials/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/comment-page-1/#comment-1411</link>
		<dc:creator>Everett</dc:creator>
		<pubDate>Tue, 07 Apr 2009 13:49:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/#comment-1411</guid>
		<description>I can read PHP and modify it from working with CMS like Joomla. But I cannot make this run. Can anyone point me to a tutorial on how to get this to run (get installed) on my web host? Thanks! (running PHP 5.X &amp; MySQL)</description>
		<content:encoded><![CDATA[<p>I can read PHP and modify it from working with CMS like Joomla. But I cannot make this run. Can anyone point me to a tutorial on how to get this to run (get installed) on my web host? Thanks! (running PHP 5.X &amp; MySQL)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TEST</title>
		<link>http://www.developertutorials.com/tutorials/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/comment-page-1/#comment-1410</link>
		<dc:creator>TEST</dc:creator>
		<pubDate>Wed, 25 Mar 2009 18:17:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/#comment-1410</guid>
		<description>Can it be treated like some sort of re-usable component?

Thanks for this great tip</description>
		<content:encoded><![CDATA[<p>Can it be treated like some sort of re-usable component?</p>
<p>Thanks for this great tip</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TEST</title>
		<link>http://www.developertutorials.com/tutorials/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/comment-page-1/#comment-1409</link>
		<dc:creator>TEST</dc:creator>
		<pubDate>Wed, 25 Mar 2009 18:16:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/#comment-1409</guid>
		<description>nice tutorial, Thanks</description>
		<content:encoded><![CDATA[<p>nice tutorial, Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anar</title>
		<link>http://www.developertutorials.com/tutorials/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/comment-page-1/#comment-1408</link>
		<dc:creator>Anar</dc:creator>
		<pubDate>Sat, 21 Mar 2009 09:25:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/#comment-1408</guid>
		<description>Very useful article, but I get problem.
The webpage that I&#039;m trying to parse has something in their script to avoid the parsing. So if I open it via browser (i.e. Firefox) it shows me the page, but when I&#039;m trying to get HTML with PHP script, I get HTML that says something like (&quot;your IP is bla-bla-bla and UserAgent bla-bla-bla blocked&quot;)
Does anybody know how to simulate normal browser request with PHP? How they can detect PHP request?
Thanks in advance,</description>
		<content:encoded><![CDATA[<p>Very useful article, but I get problem.<br />
The webpage that I&#8217;m trying to parse has something in their script to avoid the parsing. So if I open it via browser (i.e. Firefox) it shows me the page, but when I&#8217;m trying to get HTML with PHP script, I get HTML that says something like (&#8220;your IP is bla-bla-bla and UserAgent bla-bla-bla blocked&#8221;)<br />
Does anybody know how to simulate normal browser request with PHP? How they can detect PHP request?<br />
Thanks in advance,</p>
]]></content:encoded>
	</item>
</channel>
</rss>

