<?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: Processing, JSON &amp; The New York Times</title>
	<atom:link href="http://blog.blprnt.com/blog/blprnt/processing-json-the-new-york-times/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.blprnt.com/blog/blprnt/processing-json-the-new-york-times</link>
	<description>There is an art to evolution...</description>
	<lastBuildDate>Tue, 09 Mar 2010 14:58:47 -0600</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jilly</title>
		<link>http://blog.blprnt.com/blog/blprnt/processing-json-the-new-york-times/comment-page-1#comment-1442</link>
		<dc:creator>Jilly</dc:creator>
		<pubDate>Thu, 14 Jan 2010 04:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=624#comment-1442</guid>
		<description>Yes, baseURL seems to have changed once I posted.  
I tried putting in each line. Your baseURL has new characters in it &quot;&quot;  I put them in but nothing changed. 
 
The problem line is: 
String baseURL = &quot;http://api.nytimes.com/svc/search/v1/article&quot;; 
or  
String baseURL = &quot;http://api.nytimes.com/svc/search/v1/article&quot;; 
 
But WOW - I tried something else which worked. 
I hand typed EVERY CHARACTER back in and it solved the problem!!  
It has something to do with me cutting and pasting from your tutorial!! Must be extra invisible characters.  
I really appreciate your time and attention.  
I am so excited about your work. Thank you for your tutorial. Best, Jilly </description>
		<content:encoded><![CDATA[<p>Yes, baseURL seems to have changed once I posted.<br />
I tried putting in each line. Your baseURL has new characters in it &quot;&quot;  I put them in but nothing changed. </p>
<p>The problem line is:<br />
String baseURL = &quot;http://api.nytimes.com/svc/search/v1/article&quot;;<br />
or<br />
String baseURL = &quot;http://api.nytimes.com/svc/search/v1/article&quot;; </p>
<p>But WOW &#8211; I tried something else which worked.<br />
I hand typed EVERY CHARACTER back in and it solved the problem!!<br />
It has something to do with me cutting and pasting from your tutorial!! Must be extra invisible characters.<br />
I really appreciate your time and attention.<br />
I am so excited about your work. Thank you for your tutorial. Best, Jilly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jilly</title>
		<link>http://blog.blprnt.com/blog/blprnt/processing-json-the-new-york-times/comment-page-1#comment-1441</link>
		<dc:creator>Jilly</dc:creator>
		<pubDate>Thu, 14 Jan 2010 03:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=624#comment-1441</guid>
		<description>Hi Jer, I&#039;ve tried that and it didn&#039;t change anything. I used: 
 
import org.json.*; 
 
String baseURL = &#8220;&lt;a href=&quot;http://api.nytimes.com/svc/search/v1/article&#8221;;&quot; target=&quot;_blank&quot;&gt;http://api.nytimes.com/svc/search/v1/article&amp;rdqu...&lt;/a&gt; 
 
String apiKey = &#8220;820151880ac5d2227033d9d1a48451cf:13:34125204&#8221;; 
 
void setup() { 
 
}; 
 
void draw() { 
 
}; </description>
		<content:encoded><![CDATA[<p>Hi Jer, I&#039;ve tried that and it didn&#039;t change anything. I used: </p>
<p>import org.json.*; </p>
<p>String baseURL = &ldquo;<a href="http://api.nytimes.com/svc/search/v1/article&rdquo;;" target="_blank"></a><a href="http://api.nytimes.com/svc/search/v1/article&#038;rdqu.." rel="nofollow">http://api.nytimes.com/svc/search/v1/article&#038;rdqu..</a>. </p>
<p>String apiKey = &ldquo;820151880ac5d2227033d9d1a48451cf:13:34125204&rdquo;; </p>
<p>void setup() { </p>
<p>}; </p>
<p>void draw() { </p>
<p>};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blprnt</title>
		<link>http://blog.blprnt.com/blog/blprnt/processing-json-the-new-york-times/comment-page-1#comment-1440</link>
		<dc:creator>blprnt</dc:creator>
		<pubDate>Thu, 14 Jan 2010 03:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=624#comment-1440</guid>
		<description>Hi,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The second }; at the bottom of the sketch is a typo - I&#039;ve removed it from the post. Try it without that?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-Jer </description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>The second }; at the bottom of the sketch is a typo &#8211; I&#039;ve removed it from the post. Try it without that?</p>
<p>-Jer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jilly</title>
		<link>http://blog.blprnt.com/blog/blprnt/processing-json-the-new-york-times/comment-page-1#comment-1439</link>
		<dc:creator>Jilly</dc:creator>
		<pubDate>Thu, 14 Jan 2010 03:26:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=624#comment-1439</guid>
		<description>I am so grateful for your swift reply. Yes this is what I have and it did not run. 
Let me also say that I never get these built-in methods &quot; void setup() {      }; &quot;  to happen automatically 
 
At Step Two, this is what I run (I copied exactly what the tutorial has, then add my apiKey): 
 
import org.json.*; 
 
String baseURL = &#8220;&lt;a href=&quot;http://api.nytimes.com/svc/search/v1/article&#8221;;&quot; target=&quot;_blank&quot;&gt;http://api.nytimes.com/svc/search/v1/article&amp;rdqu...&lt;/a&gt; 
 
String apiKey = &#8220;820151880ac5d2227033d9d1a48451cf:13:34125204&#8221;; 
 
void setup() { 
 
}; 
 
void draw() { 
 
}; 
 
}; 
 
As a result I get (I have truncated below the &quot;unexpected&quot; part): 
processing.app.debug.RunnerException: unexpected char: &#039;&#039; 
at processing.app.Sketch.preprocess(Sketch.java:1395) 
at processing.app.Sketch.preprocess(Sketch.java:1194) 
at processing.app.Sketch.build(Sketch.java:1480) 
at processing.app.Sketch.compile(Sketch.java:1174) 
at processing.app.Editor.handleRun(Editor.java:1644) ......... </description>
		<content:encoded><![CDATA[<p>I am so grateful for your swift reply. Yes this is what I have and it did not run.<br />
Let me also say that I never get these built-in methods &quot; void setup() {      }; &quot;  to happen automatically </p>
<p>At Step Two, this is what I run (I copied exactly what the tutorial has, then add my apiKey): </p>
<p>import org.json.*; </p>
<p>String baseURL = &ldquo;<a href="http://api.nytimes.com/svc/search/v1/article&rdquo;;" target="_blank"></a><a href="http://api.nytimes.com/svc/search/v1/article&#038;rdqu.." rel="nofollow">http://api.nytimes.com/svc/search/v1/article&#038;rdqu..</a>. </p>
<p>String apiKey = &ldquo;820151880ac5d2227033d9d1a48451cf:13:34125204&rdquo;; </p>
<p>void setup() { </p>
<p>}; </p>
<p>void draw() { </p>
<p>}; </p>
<p>}; </p>
<p>As a result I get (I have truncated below the &quot;unexpected&quot; part):<br />
processing.app.debug.RunnerException: unexpected char: &#039;&#039;<br />
at processing.app.Sketch.preprocess(Sketch.java:1395)<br />
at processing.app.Sketch.preprocess(Sketch.java:1194)<br />
at processing.app.Sketch.build(Sketch.java:1480)<br />
at processing.app.Sketch.compile(Sketch.java:1174)<br />
at processing.app.Editor.handleRun(Editor.java:1644) &#8230;&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jilly</title>
		<link>http://blog.blprnt.com/blog/blprnt/processing-json-the-new-york-times/comment-page-1#comment-1434</link>
		<dc:creator>Jilly</dc:creator>
		<pubDate>Thu, 14 Jan 2010 02:40:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=624#comment-1434</guid>
		<description>Hi Jer, I&#039;ve tried all other user groups (NYT, Processing, Google) and to avail I am bothering you with this. I&#039;m on a Mac OSX (10.5.8) and I&#039;ve followed your tutorial up to Step Two, and this what happens. I get the red code with the error: &quot;  processing.app.debug.RunnerException: unexpected char: &#039;&#039;  &quot; I&#039;ve re-checked the code and my api key a million times. Is it because I&#039;m on a Mac I can&#039;t run it? </description>
		<content:encoded><![CDATA[<p>Hi Jer, I&#039;ve tried all other user groups (NYT, Processing, Google) and to avail I am bothering you with this. I&#039;m on a Mac OSX (10.5.8) and I&#039;ve followed your tutorial up to Step Two, and this what happens. I get the red code with the error: &quot;  processing.app.debug.RunnerException: unexpected char: &#039;&#039;  &quot; I&#039;ve re-checked the code and my api key a million times. Is it because I&#039;m on a Mac I can&#039;t run it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blprnt</title>
		<link>http://blog.blprnt.com/blog/blprnt/processing-json-the-new-york-times/comment-page-1#comment-1243</link>
		<dc:creator>blprnt</dc:creator>
		<pubDate>Tue, 27 Oct 2009 04:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=624#comment-1243</guid>
		<description>Hi Emily,    I will try to look at this tomorrow - I don&#039;t get the error since my API key is whitelisted for tonnes of requests. If some of your queries are working before you get the error, the 403 is almost definitely coming because you are hitting the API too often. It may be that rather than using a loop, it would be better to hit the queries once per frame. I will try to rebuild this and see what I can figure out.    Cheers,    -Jer </description>
		<content:encoded><![CDATA[<p>Hi Emily,    I will try to look at this tomorrow &#8211; I don&#039;t get the error since my API key is whitelisted for tonnes of requests. If some of your queries are working before you get the error, the 403 is almost definitely coming because you are hitting the API too often. It may be that rather than using a loop, it would be better to hit the queries once per frame. I will try to rebuild this and see what I can figure out.    Cheers,    -Jer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emilyrln</title>
		<link>http://blog.blprnt.com/blog/blprnt/processing-json-the-new-york-times/comment-page-1#comment-1242</link>
		<dc:creator>emilyrln</dc:creator>
		<pubDate>Sun, 25 Oct 2009 22:57:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=624#comment-1242</guid>
		<description>Thanks for posting this!  I&#039;m getting the same error as Aaron and Ryan (at end of post); my query is: 
 
String request = baseURL + &quot;?query=Dan+Brown&amp;begin_date=19900101&amp;end_date=20090101&amp;api-key=&quot; + apiKey; 
 String result = join(loadStrings(request), &quot;&quot;); 
 
Any help would be great! 
 
//errors:  
java.io.IOException: Server returned HTTP response code: 403 for URL: &lt;a href=&quot;http://api.nytimes.com/svc/search/v1/article?query=Dan+Brown&amp;begin_date=19900101&amp;end_date=20090101&amp;api-key=60117643a309bbb7e80e276511e734af:8:59492943&quot; target=&quot;_blank&quot;&gt;http://api.nytimes.com/svc/search/v1/article?quer...&lt;/a&gt; 
at sun.net.&lt;a href=&quot;http://www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1196)&quot; target=&quot;_blank&quot;&gt;www.protocol.http.HttpURLConnection.getInputStrea...&lt;/a&gt; 
at java.net.URL.openStream(URL.java:1007) 
at processing.core.PApplet.createInputRaw(PApplet.java:3901) 
at processing.core.PApplet.createInput(PApplet.java:3870) 
at processing.core.PApplet.loadStrings(PApplet.java:4101) 
at nyTimesServerTest.getDanBrownBestSellers(nyTimesServerTest.java:38) 
at nyTimesServerTest.setup(nyTimesServerTest.java:29) 
at processing.core.PApplet.handleDraw(PApplet.java:1383) 
at processing.core.PApplet.run(PApplet.java:1311) 
at java.lang.Thread.run(Thread.java:613) 
The file &quot;http://api.nytimes.com/svc/search/v1/article?query=Dan+Brown&amp;begin_date=19900101&amp;end_date=20090101&amp;api-key=60117643a309bbb7e80e276511e734af:8:59492943&quot; is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
Exception in thread &quot;Animation Thread&quot; java.lang.NullPointerException 
at processing.core.PApplet.join(PApplet.java:5129) 
at nyTimesServerTest.getDanBrownBestSellers(nyTimesServerTest.java:38) 
at nyTimesServerTest.setup(nyTimesServerTest.java:29) 
at processing.core.PApplet.handleDraw(PApplet.java:1383) 
at processing.core.PApplet.run(PApplet.java:1311) 
at java.lang.Thread.run(Thread.java:613) 
 </description>
		<content:encoded><![CDATA[<p>Thanks for posting this!  I&#039;m getting the same error as Aaron and Ryan (at end of post); my query is: </p>
<p>String request = baseURL + &quot;?query=Dan+Brown&amp;begin_date=19900101&amp;end_date=20090101&amp;api-key=&quot; + apiKey;<br />
 String result = join(loadStrings(request), &quot;&quot;); </p>
<p>Any help would be great! </p>
<p>//errors:<br />
java.io.IOException: Server returned HTTP response code: 403 for URL: <a href="http://api.nytimes.com/svc/search/v1/article?query=Dan+Brown&amp;begin_date=19900101&amp;end_date=20090101&amp;api-key=60117643a309bbb7e80e276511e734af:8:59492943" target="_blank"></a><a href="http://api.nytimes.com/svc/search/v1/article?quer.." rel="nofollow">http://api.nytimes.com/svc/search/v1/article?quer..</a>.<br />
at sun.net.<a href="http://www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1196)" target="_blank"></a><a href="http://www.protocol.http.HttpURLConnection.getInputStrea.." rel="nofollow">http://www.protocol.http.HttpURLConnection.getInputStrea..</a>.<br />
at java.net.URL.openStream(URL.java:1007)<br />
at processing.core.PApplet.createInputRaw(PApplet.java:3901)<br />
at processing.core.PApplet.createInput(PApplet.java:3870)<br />
at processing.core.PApplet.loadStrings(PApplet.java:4101)<br />
at nyTimesServerTest.getDanBrownBestSellers(nyTimesServerTest.java:38)<br />
at nyTimesServerTest.setup(nyTimesServerTest.java:29)<br />
at processing.core.PApplet.handleDraw(PApplet.java:1383)<br />
at processing.core.PApplet.run(PApplet.java:1311)<br />
at java.lang.Thread.run(Thread.java:613)<br />
The file &quot;http://api.nytimes.com/svc/search/v1/article?query=Dan+Brown&amp;begin_date=19900101&amp;end_date=20090101&amp;api-key=60117643a309bbb7e80e276511e734af:8:59492943&quot; is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.<br />
Exception in thread &quot;Animation Thread&quot; java.lang.NullPointerException<br />
at processing.core.PApplet.join(PApplet.java:5129)<br />
at nyTimesServerTest.getDanBrownBestSellers(nyTimesServerTest.java:38)<br />
at nyTimesServerTest.setup(nyTimesServerTest.java:29)<br />
at processing.core.PApplet.handleDraw(PApplet.java:1383)<br />
at processing.core.PApplet.run(PApplet.java:1311)<br />
at java.lang.Thread.run(Thread.java:613)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blprnt</title>
		<link>http://blog.blprnt.com/blog/blprnt/processing-json-the-new-york-times/comment-page-1#comment-1080</link>
		<dc:creator>blprnt</dc:creator>
		<pubDate>Wed, 09 Sep 2009 01:14:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=624#comment-1080</guid>
		<description>Hi TimesFan,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I will try to look into this over the next couple of days - I haven&#039;t played with the NYT code for a while!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The error is definitely coming from hitting the API too frequently. I know the delay() calls don&#039;t work because I remember trying them when I was having the same problem myself!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-Jer </description>
		<content:encoded><![CDATA[<p>Hi TimesFan,</p>
<p>I will try to look into this over the next couple of days &#8211; I haven&#039;t played with the NYT code for a while!</p>
<p>The error is definitely coming from hitting the API too frequently. I know the delay() calls don&#039;t work because I remember trying them when I was having the same problem myself!</p>
<p>-Jer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TimesFan</title>
		<link>http://blog.blprnt.com/blog/blprnt/processing-json-the-new-york-times/comment-page-1#comment-1079</link>
		<dc:creator>TimesFan</dc:creator>
		<pubDate>Mon, 07 Sep 2009 18:35:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=624#comment-1079</guid>
		<description>PS this is a fantastic tutorial. one of the best I&#039;ve seen anywhere. </description>
		<content:encoded><![CDATA[<p>PS this is a fantastic tutorial. one of the best I&#039;ve seen anywhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TimesFan</title>
		<link>http://blog.blprnt.com/blog/blprnt/processing-json-the-new-york-times/comment-page-1#comment-1078</link>
		<dc:creator>TimesFan</dc:creator>
		<pubDate>Mon, 07 Sep 2009 18:34:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=624#comment-1078</guid>
		<description>I&#039;m having the same problem as Ryan. How would one check if URL is valid? or  catch the 403 error. thanks </description>
		<content:encoded><![CDATA[<p>I&#039;m having the same problem as Ryan. How would one check if URL is valid? or  catch the 403 error. thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
