<?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: Screen Scraping Twitter</title>
	<atom:link href="http://www.bradino.com/php/screen-scraping-twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bradino.com/php/screen-scraping-twitter/</link>
	<description>LAMP Development Tutorials, Code, Tips &#38; Tricks</description>
	<lastBuildDate>Mon, 08 Mar 2010 19:42:16 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: BRADINO</title>
		<link>http://www.bradino.com/php/screen-scraping-twitter/comment-page-1/#comment-2649</link>
		<dc:creator>BRADINO</dc:creator>
		<pubDate>Sun, 08 Nov 2009 20:03:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradino.com/?p=4845#comment-2649</guid>
		<description>With the Scrape class I wrote, it takes a data array as a parameter to put it into POST mode. I would imagine that you could use an array with one element, of which Twitter would ignore, or else just comment out the conditional where it looks for the data array to contain something before setting it to POST. Otherwise email me your code example and I will get it to work for you.

BRAD</description>
		<content:encoded><![CDATA[<p>With the Scrape class I wrote, it takes a data array as a parameter to put it into POST mode. I would imagine that you could use an array with one element, of which Twitter would ignore, or else just comment out the conditional where it looks for the data array to contain something before setting it to POST. Otherwise email me your code example and I will get it to work for you.</p>
<p>BRAD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alister Cameron</title>
		<link>http://www.bradino.com/php/screen-scraping-twitter/comment-page-1/#comment-2648</link>
		<dc:creator>Alister Cameron</dc:creator>
		<pubDate>Sun, 08 Nov 2009 13:14:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradino.com/?p=4845#comment-2648</guid>
		<description>I have tried using the friendships/create API call, but it requires POST, without any POST data.

I&#039;ve tried rewriting your code a little, but I can&#039;t get it to work.

Would you be able to show me how to do it?

I constantly get the error that I can&#039;t be authenticated, but I do this on the back of other API method calls, which also require AUTH, and which work fine!

Not sure if I may have a boo boo there, of your current version won&#039;t do it!

Cheers.</description>
		<content:encoded><![CDATA[<p>I have tried using the friendships/create API call, but it requires POST, without any POST data.</p>
<p>I&#8217;ve tried rewriting your code a little, but I can&#8217;t get it to work.</p>
<p>Would you be able to show me how to do it?</p>
<p>I constantly get the error that I can&#8217;t be authenticated, but I do this on the back of other API method calls, which also require AUTH, and which work fine!</p>
<p>Not sure if I may have a boo boo there, of your current version won&#8217;t do it!</p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BRADINO</title>
		<link>http://www.bradino.com/php/screen-scraping-twitter/comment-page-1/#comment-2590</link>
		<dc:creator>BRADINO</dc:creator>
		<pubDate>Wed, 05 Aug 2009 06:02:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradino.com/?p=4845#comment-2590</guid>
		<description>PHP5+</description>
		<content:encoded><![CDATA[<p>PHP5+</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CJ Millisock</title>
		<link>http://www.bradino.com/php/screen-scraping-twitter/comment-page-1/#comment-2585</link>
		<dc:creator>CJ Millisock</dc:creator>
		<pubDate>Sun, 02 Aug 2009 22:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradino.com/?p=4845#comment-2585</guid>
		<description>Hey man, thanks for writing this class and making it public!  I&#039;m getting an error when trying to include the file containing the class.  Here is my php file (renamed as txt):
http://is.gd/1ZB4f

The error I get is:

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or &#039;}&#039; in /the_full_path/cScrape.php on line 3

What version of PHP do you run?  I wonder if that has anything to do with it?</description>
		<content:encoded><![CDATA[<p>Hey man, thanks for writing this class and making it public!  I&#8217;m getting an error when trying to include the file containing the class.  Here is my php file (renamed as txt):<br />
<a href="http://is.gd/1ZB4f" rel="nofollow">http://is.gd/1ZB4f</a></p>
<p>The error I get is:</p>
<p>Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or &#8216;}&#8217; in /the_full_path/cScrape.php on line 3</p>
<p>What version of PHP do you run?  I wonder if that has anything to do with it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francisco Cheng</title>
		<link>http://www.bradino.com/php/screen-scraping-twitter/comment-page-1/#comment-2248</link>
		<dc:creator>Francisco Cheng</dc:creator>
		<pubDate>Sun, 31 May 2009 19:17:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradino.com/?p=4845#comment-2248</guid>
		<description>Turned out that my error was caused by Xampp.  I uploaded the script to an actual server, ran it, and it worked perfect.

If anyone else is using Xampp, you will have to post the data using a string instead of an array (don&#039;t ask me why, it just won&#039;t work with an array) basically like this:

$post_data=&quot;authenticity_token=&quot;.$token.&quot;&amp;&quot;.urlencode(&quot;session[username_or_email]&quot;).&quot;=$username&amp;&quot;.urlencode(&quot;session[password]&quot;).&quot;=$password&quot;;</description>
		<content:encoded><![CDATA[<p>Turned out that my error was caused by Xampp.  I uploaded the script to an actual server, ran it, and it worked perfect.</p>
<p>If anyone else is using Xampp, you will have to post the data using a string instead of an array (don&#8217;t ask me why, it just won&#8217;t work with an array) basically like this:</p>
<p>$post_data=&#8221;authenticity_token=&#8221;.$token.&#8221;&amp;&#8221;.urlencode(&#8221;session[username_or_email]&#8220;).&#8221;=$username&amp;&#8221;.urlencode(&#8221;session[password]&#8220;).&#8221;=$password&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francisco Cheng</title>
		<link>http://www.bradino.com/php/screen-scraping-twitter/comment-page-1/#comment-2247</link>
		<dc:creator>Francisco Cheng</dc:creator>
		<pubDate>Sun, 31 May 2009 17:42:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradino.com/?p=4845#comment-2247</guid>
		<description>Hi,

I wrote my own screen scraper logging into Twitter but couldn&#039;t get it to work as I am getting this error:

403 Forbidden: The server understood the request, but is refusing to fulfill it.

So I searched around and found your code, which is giving me the same exact error.  Are you still able to use this code to login to Twitter for scraping?  Any ideas what I am doing wrong?  I have cookies enable and I am passing back the token.

By the way, I think for step 1.5, you need the line $scrape = new Scrape(); before the $scrape-&gt;fetch(&#039;https://twitter.com&#039;); line in order for the code to work.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I wrote my own screen scraper logging into Twitter but couldn&#8217;t get it to work as I am getting this error:</p>
<p>403 Forbidden: The server understood the request, but is refusing to fulfill it.</p>
<p>So I searched around and found your code, which is giving me the same exact error.  Are you still able to use this code to login to Twitter for scraping?  Any ideas what I am doing wrong?  I have cookies enable and I am passing back the token.</p>
<p>By the way, I think for step 1.5, you need the line $scrape = new Scrape(); before the $scrape-&gt;fetch(&#8217;https://twitter.com&#8217;); line in order for the code to work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
