Yeboo:FinnXML

From its-wiki.no
Jump to: navigation, search

back to Yeboo:Main_page

Import of XML data

For Postbanken we'll import the .xml stream coming from Finn.no via Reeltime

Finn XML stream

XML stream content

Overview

for detailed information see further down (from Geir Borch):

(from Roar in Reeltime)

Detailed info

(From Roar Nicolaisen, Reeltime) inn has two different xml streams. One that is used as an overview (list) and one that gives the details for the object. To be able to view images in both list just add the value within the image tags to this link: http://cache.finn.no/mmo/[value from xml]

Overview: http://www.finn.no/rest/postbanken_rest/realestate/common/result

Object :

http://www.finn.no/rest/postbanken_rest/realestate/homes/object?finnkode=[id]

In the overview xml there are some xml tags that are important:

  • adid: the id of the object. Use the value with the object xml stream
  • changed_string: when the object was last updated
  • mmo: the image used for the overview object

An explanation for some of the xml tags in the object xml stream: Attributes: You will find most of the details about the object within this tag

images: the images that have been uploaded for this object. There have been occurrences of other file types that is not an image within this tag (example: pdf). An element within the image tag contains 4 different image sizes. Each has it's own xml tag which represents their size.

Some information are broken apart from each other. Even tough the information are separate from each other, you can connect them to each other through the xml attribute id within the element tag. Example

<broker.name>
     <element id="0">value</element>
</broker.name>
<broker.mobile>
     <element id="0">value</element>
</broker.mobile>

There are also some cases where the id is joined with the xml tag: <broker.mobile.0>value</broker.mobile.0>

Some tags where this occurs:

  • broker.mobile
  • broker.name
  • broker.email
  • general_text_realestate.general_heading
  • general_text_realestate.general_text

discussion on data

  • Realestate.html - describes all the .xml files which are available on FINN.no

As of my understanding, you only need to of them a) listing....xml (and or overview-......xml). In the current listing-03-01-11.xml you find the tag <adid>27080183</adid> and likewise 27083504 and 26372297 - these adid is used to access all the information on the houses b) object?finnkode=28080183 - this is the full listing of all house information - and that is the file (are the files) we need to import into Yeboo

  • listing-03-01-11.xml - provides an "update overview" on what has happened (at least as how I understand it)

This list is updated "every day", and thus never identical. it just contains the "changes" to the publications

  • /rest/postbanken_rest/realestate/object?finnkode=28080183

Please try to access & import, and provide me with a copy of this file. That will allow us to talk about the same file, and see how it is imported.

Regarding the other aspects of your mail > I have a concern about the xml feeds from March 01, 2011 feed the return xml have a result of at least 5 list in the xml in the live server "wp-content/xml/listing-03-01-11.xml" that's the file that I have attach this email as well as the previous xml file I have sent is the same file then starting from March 02 , March 03, March 08 and March 09 feed the files does not have a single data written to the files the path to these files, I have updated the path of the files to "wp-content/xml/urlimport/" in the live server. This is from the overview feed using the link "http://www.finn.no/rest/postbanken_rest/realestate/common/result"

The listings (listing...xml) are updated every day, and provide us with the <adid> of the files (announcements) which are changed. I have not checked which information is changed, it might be that you only have to update the "listing". Let us check after you have imported.

> And as for the yesterday test I have checked the xml files form the dev' site and the files content the error "This URL ("/rest/postbanken_rest/realestate/common/result") cannot be run (now). Your IP address (208.43.5.50) may not be allowed for this URL." I have added the file to the zip. And also accessing the link "http://www.finn.no/finn/realestate/homes/object?finnkode=[id]" to fetch the object.

Please see my earlier mail, you should have access now.

Thus, I'm really confident that you have all the information needed:

  • <adid> from listing and overview (here: 28080183)
  • realestate/object?finnkode=28080183 - this is the .xml information of every file, which needs to be imported in Yeboo