Author Topic: Help from the coders?  (Read 845 times)

Offline Slim Hacker

  • Mr PS3
  • Millennium Poster
  • *
  • Posts: 1140
  • Post quality +0/-0
  • Gender: Male
Help from the coders?
« on: August 26, 2009, 04:45:22 PM »
Well I have a site and I get all the info from xml files and tonight there is going to be over 100 items added to it and im just wondering is there some way to make a script that I could just run and it would grab the specific codes from it and make it into a url like http://scee-home.playstation.net/c.home/prod/live/Objects/00000000-00000000-00000002-00000003/small.png

the only thing is that there are multiple possibilitys when it comes to what the right url would be the others just get a 404 error some of them have to be small_T031.png but the only availible ones under T are 001, 031, 032, and 033.

also here is a sample of the XML files I get my info from and all these are the "framework" that Playstation home runs on :D

<commerce_point>

<node>

<node type="objects">

<header>
<name lang="en-GB" default="true">Personal Space</name>
<name lang="fr-FR">Espace personnel</name>
<name lang="it-IT">Spazio personale</name>
<name lang="de-DE">Home-Apartment</name>
<name lang="es-ES">Espacio Home</name>
<name lang="ja-JP">パーソナルスペース</name>
<name lang="ko-KR">개인공간</name>
<name lang="zh-HK">個人空間</name>
<name lang="zh-TW">個人空間</name>
<name lang="en-SG">Personal Space</name>
<name lang="en-US">Personal Space</name>

<thumbnail lang="en-GB" default="true">
[CONTENT_SERVER_ROOT]CommercePoints/Thumbnails/home.png
</thumbnail>
</header>
<object>2935147C-2D4043C9-87E252B8-B960C809</object>
<object>86C5657F-0FA8424F-92CEE518-5CE2365F</object>
<object>77D9E3EF-02A74DA9-BD77FBBD-91407A88</object>
<object>2519FAC0-18AA4FCB-A1214F6B-65F5F001</object>
<object>63969967-334F4FD7-A57D0768-DA16D0FC</object>
</node>
</node>
</commerce_point>

But all I need it to grab are the 32 digits between the <object></object> tags.

Quote from: Jumbo
I herd you like stealing quotes ey?

Offline ryan0

  • I EAT STUFF
  • Millennium Poster
  • *
  • Posts: 1128
  • Post quality +0/-0
  • Gender: Male
  • I LIEK CHEEEEZE
Re: Help from the coders?
« Reply #1 on: August 26, 2009, 05:31:07 PM »
use a wildcard,I'm not too great at xml but sustitute "*" minus the quotes for the file name e.g. *.gif if you wanted to download all the particular gifs in a directory.
I'm still not too clear on what you're trying to do though.
Derp.

Offline Slim Hacker

  • Mr PS3
  • Millennium Poster
  • *
  • Posts: 1140
  • Post quality +0/-0
  • Gender: Male
Re: Help from the coders?
« Reply #2 on: August 27, 2009, 04:14:59 PM »
Well Im getting the xml filoes from the home servers and im just needing something that will grab the 32 digit item codes (well 35 with the dashes) and add them to a URL resembling this http://scee-home.playstation.net/c.home/prod/live/Objects/00000000-00000000-00000002-00000003/small.png the only probelem is that they are not all small.png

there is
small_T001.png
small_T031.png
small_T032.png
small_T033.png
and a few others

Quote from: Jumbo
I herd you like stealing quotes ey?

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.5 © 2008-2012, SimplePortal