<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 18 Jun 2013 01:35:33 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[php|architect: Introducing four new PHP 5.3 components and Goutte, a simple web scraper ]]></title>
      <guid>http://www.phpdeveloper.org/news/14405</guid>
      <link>http://www.phpdeveloper.org/news/14405</link>
      <description><![CDATA[<p>
On the php|architect blog today there's <a href="http://www.phparch.com/2010/04/22/four-new-php-5-3-components-and-goutte-a-simple-web-scraper">a new post</a> from <i>Ryan Weaver</i> about some of the new components that've been added to the <a href="http://symfony-project.org">Symfony framework</a> - BrowserKit, CssSelector, DomCrawler, Process and a project that uses them all, Goutte.
</p>
<blockquote>
To support symfony 2's development, Fabien Potencier '" the lead developer of the symfony framework '" has released four new PHP 5.3 based components. [...] Though these components will be used by Symfony 2, they're built to be standalone components that can be easily used in any PHP 5.3 project. 
</blockquote>
<p>
<a href="http://www.phparch.com/2010/04/22/four-new-php-5-3-components-and-goutte-a-simple-web-scraper/">The post</a> lists each of them out including features and some sample code as well as a brief look (mostly code) at using <a href="http://github.com/fabpot/Goutte">to locate specific contents</a> in a page.
</p>]]></description>
      <pubDate>Fri, 23 Apr 2010 14:50:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Fabien Potencier's Blog: Parsing XML documents with CSS selectors]]></title>
      <guid>http://www.phpdeveloper.org/news/14288</guid>
      <link>http://www.phpdeveloper.org/news/14288</link>
      <description><![CDATA[<p>
In a new post <i>Fabien Potencier</i> talks about how he took the Python <a href="http://codespeak.net/lxml/cssselect.html">lxml.cssselect</a> component from Python, ported it over to PHP and made a library that allows you to parse XML with the handy CSS selectors rather than using XPath.
</p>
<blockquote>
Odds are you [also] need to parse some from time to time: because you consume a web service and want to extract some information, or because you want to gather data from scraped web pages, or just because you want to write functional tests for a website. 
</blockquote>
<p>
The <a href="http://github.com/fabpot/symfony/tree/master/src/Symfony/Components/CssSelector/">CssSelector tool</a> allows you to convert a CSS selector into an XPath that can, in turn, be pushed into the XPath function of the PHP DOM XML functionality. He gives a few examples of using it for a simple "find" and for something more complex involving a SimpleXML object too.
</p>
<p>
The library can be <a href="http://github.com/fabpot/symfony/tree/master/src/Symfony/Components/CssSelector/">downloaded from github here</a>.
</p>]]></description>
      <pubDate>Fri, 02 Apr 2010 09:41:27 -0500</pubDate>
    </item>
  </channel>
</rss>
