WordPress.org

Ready to get started?Download WordPress

Forums

XML Feed Import (18 posts)

  1. Chief01
    Member
    Posted 3 years ago #

    I am trying to import a series of XML feeds into my blog. They are from the job search operation Indeed. They have given me the API URL but I can't figure out how to set it up in WordPress. Can anybody show me how to do this? any help would be much appreciated. Is there a plug-in or some code that I need to use? A bit of poetry would help greatly.

  2. Depends on the XML source...

    http://codex.wordpress.org/Importing_Content

  3. Chief01
    Member
    Posted 3 years ago #

    Thanks for the quick response. The source is Indeed - the job search engine. (http://www.indeed.com/) They provide an editable XML feed option and have given me an example of an XML request: http://api.indeed.com/ads/apisearch?publisher=XXXXXXXXXXXXXXXX&q=java&l=austin%2C+tx&sort=&radius=&st=&jt=&start=&limit=&fromage=&filter=&latlong=1&co=us&chnl=&userip=1.2.3.4&useragent=Mozilla/%2F4.0%28Firefox%29&v=2. When I go to the URL, I get the following message: "This XML file does not appear to have any style information associated with it. The document tree is shown below" w/ the document tree below in code. I've searched the forums and can't find the key to getting this to work. I need to figure out how to make the request and import the data. Any suggestions would be appreciated. Thanks,

  4. Well as you can see on the link, there are different methods per source (Indeed isn't listed, but maybe standard XHTML might work).

  5. Chief01
    Member
    Posted 3 years ago #

    Would you recommend that I use the Import HTML Pages plug-in for that?

  6. You could try it. I'm not familiar with Indeed, so you may have to play around :/

  7. Chief01
    Member
    Posted 3 years ago #

    I got the plug-in to work - the URL was added to a post. It's a nice bit of code. Now I just have to figure out how to add a style sheet. Kill one daemon and up jumps another. (grins) Thanks for your help - any thoughts on how to call up the style sheet?

  8. You mean to re-theme your site or ...? Adding a style sheet to your site is generally as easy as modifying your theme.

    If that's what you want, you could make a new post here:
    http://wordpress.org/support/forum/themes-and-templates

  9. Chief01
    Member
    Posted 3 years ago #

    Nope - the post displays without the style sheet of my theme =- which I want to keep and use. Here is what I get:

    <?xml version="1.0" encoding="UTF-8" ?>
    <response version="2">
    <query>java</query>
    <location>austin, tx</location>
    <dupefilter>true</dupefilter>
    <highlight>false</highlight>
    <totalresults>547</totalresults>
    <start>1</start>
    <end>10</end>
    <radius>25</radius>
    <pageNumber>0</pageNumber>
    <results>
    <result>
    <jobtitle>Java Developer</jobtitle>
    <company>XYZ Corp.</company>
    <city>Austin</city>
    <state>TX</state>
    <country>US</country>
    <formattedLocation>Austin, TX</formattedLocation>
    <source>Dice</source>
    <date>Mon, 02 Aug 2010 16:21:00 GMT</date>
    <snippet>looking for an object-oriented Java Developer... Java Servlets, HTML, JavaScript,
    AJAX, Struts, Struts2, JSF) desirable. Familiarity with Tomcat and the Java...</snippet>
    <url>http://www.indeed.com/viewjob?jk=12345&indpubnum=8343699265155203</url>
    <onmousedown>indeed_clk(this,'0000');</onmousedown>
    <latitude>30.27127</latitude>
    <longitude>-97.74103</longitude>
    <jobkey>12345</jobkey>
    <sponsored>false</sponsored>
    <expired>false</expired>
    <formattedLocationFull>Austin, TX</formattedLocationFull>
    <formattedRelativeTime>11 hours ago</formattedRelativeTime>
    </result>
    ...
    </results>
    </response>

    Plus the error message: This XML file does not appear to have any style information associated with it. The document tree is shown below

    One daemon down one to go!

  10. Yeah, I'm afraid I'm not really sure if that's WP or the plugin or what :(

  11. rockyrockwood
    Member
    Posted 3 years ago #

    Chief - I have EXACTLY the same challenge. I want to tie in an unstyled xml feed - similar to yours - into wordpress. When the feed updates, the post should update.

    How did you solve the problem?

    Thanks,

    Ry

  12. Chief01
    Member
    Posted 3 years ago #

    Rocky, Never did solve the problem It seems that the answer is beyond the capability of the people who work this forum. There should be a stock solution but the level of knowledge required is apparently above what is available here.

  13. tinus2
    Member
    Posted 3 years ago #

    wouldn't say that the knowledge required is above of what is avaialble here, people just don't necessarily share what is most valuable. one member actually already did share (make a search for your topic), however it doesn't fully work for me...

    so, as i am also looking for a solution to the same issue, i would like to hire a programmer or anyone contacting me on wp to get the feed items properly mapped to wordpress fields.

  14. rockyrockwood
    Member
    Posted 3 years ago #

    Thanks guys -

    Please let me know if you get any traction on this.

    Ry

  15. tinus2
    Member
    Posted 3 years ago #

    just found a plugin that does the job - wpallimport.com - still contemplating if i will buy or if i should hire a freelancer to do the same...

  16. rockyrockwood
    Member
    Posted 3 years ago #

    Wow, this could be great. Why on earth would you hire someone? My only question is whether/how it could update posts vs republishing duplicate posts... also, can it delete a post if the item is removed from the feed.

    Anyway, thank you so much for this. I don't know how on earth you found this. I thought I'd googled everything.

  17. people just don't necessarily share what is most valuable

    No, now that's just unfair. More accurate would be 'The people answering this post don't know, and no one who DOES know has shown up yet.'

    I certainly don't know the answer, but I TRIED to help logic down a path to get everyone there. If someone HAS an answer and sees the post they usually help out. It's a matter of seeing the post.

    one member actually already did share (make a search for your topic), however it doesn't fully work for me...

    Would you be so kind as to provide a link?

  18. tinus2
    Member
    Posted 3 years ago #

    sure...

    http://wordpress.org/support/topic/xml-data-feed-import?replies=7#post-1252357

    the first result that shows up in google for me...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags