[development] Programmatic data importing from JSON source

Paul Hoza paulhoza at gmail.com
Fri Feb 20 04:53:04 UTC 2009


Hi Dave,
Thanks for the tip.  I have what amounts to a few half-ish done custom 
parsers -- each in a varied state of mess.  I definitely will keep you 
offer on-hand in case I go that route ultimately.

I did get some good responses (a couple that accidentally ended up 
off-list), so I'm going to tackle this again tonight.  The coffee pot's 
full of fresh Go Juice, so I'm looking forward to getting this tackled 
tonight... although I've said that to myself an embarrassing number of 
times on this project.  >_>

(For the curious...)
I'm currently working on a fresh approach at directly accessing the JSON 
feed.  I'm making a separate PHP script that reads in the feed and runs 
it through json_decode().  From there, I plan to dissect the object and 
map all the different key->value sets out to an array I'll feed into 
drupal_execute().  If this all works as I plan/hope, I'll be able to run 
this script with cron every day.

...thus are my plans, anyway.  Mice didn't make these plans, so their 
value is currently in question.

Thanks for the great feedback so far!  I'll report back later so I don't 
leave the thread hanging.

Thanks Dave.

Paul



David Metzler wrote:
> Hey Paul, 
>
> Thanks for the sample.  I'm assuming that you've gotten what you 
> needed from the dev list here. As it sounds like you got your problem 
> solved.  I'm not an expert of Feed API, but I do know XML Parsing, and 
> it would seem that if you were ever to tackle a new feed_api parser, 
> then I've got some code that you might be interested.  It's the XML to 
> array conversion code that I alluded to in another thread.  I'm hoping 
> to have it published as a contrib  in some kind of dev form by the end 
> of the month.  I'm busy extracting it from some other code that I've 
> got that isn't really appropriate for API distribution. 
>
> Let me know if you need any more help. 
>
> Dave
>
>
> On Feb 18, 2009, at 2:42 AM, Paul Hoza wrote:
>
>> uick sample of what the <summary> tag looks
>>
>


-- 
+-----------------------------------------------+
|  Paul Hoza
|  I do: Games, Websites, Multimedia and more.
|  paul at hoza.net
+-----------------------------------------------+



More information about the development mailing list