www.webdeveloper.com
Results 1 to 11 of 11

Thread: What to use for displaying images from RSS feeds?

  1. #1
    Join Date
    Mar 2012
    Posts
    6

    What to use for displaying images from RSS feeds?

    Hello All

    I am new to web development and I am learning about RSS. What I would like to do is load an RSS feed from another website, search for a certain RSS tag (for example <image>) and display the image from the RSS feed on my website. I believe I would need to use Javascript or PHP but I am really not sure.

    What I am basically asking is: what language would I have to use to grab certain parts of other website's RSS feeds and display them on my site?

    Thanks

  2. #2
    Join Date
    Mar 2012
    Location
    chandigarh
    Posts
    33
    Hello
    Sir you have to do nothing there are many site who will generate automatically your rss feed file with image you have to just implement in your xml sheet.
    just type in google
    generate my rss feed
    lots of link come at the first page.
    I also implement this same thing in my Website Redesign Services website.
    Try it and best of luck.

  3. #3
    Join Date
    Mar 2012
    Posts
    6
    Unfortunately that is not what I am trying to do.

    I would like to have my site search another website's RSS feed for an image tag and then display the image or a link to that image on my website.

    How would I be able to display images from another websites RSS feed on my website? I do not want to use RSS on my site, I only want my site to grab images from other sites RSS feeds.

  4. #4
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    It's pretty easily done. Do you have access to PHP? And please give us the link to the RSS.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  5. #5
    Join Date
    Mar 2012
    Posts
    6
    Sorry I should have used an example in the first post. I will use the engadget RSS feed for this example (http://hd.engadget.com/rss-aac.xml).

    How would my website be able to find the <image> tag, copy the contents of it and then display the engadget image on my website?

  6. #6
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    Right click on the image, save it to you desktop and then upload it to your site.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  7. #7
    Join Date
    Mar 2012
    Posts
    6
    Unfortunately I need to upload info from multiple rss feeds that change even few days. I would like to automate the process. I believe I would need to use php. But am unsure. How can I automate this process?

  8. #8
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    PHP Code:
    <?php

        $dom 
    = new DOMDocument();
        
    $DOM->preserveWhiteSpace false;
        
    $dom->load ('http://feeds.bbci.co.uk/news/rss.xml?edition=int');
        
        foreach (
    $dom->getElementsByTagName ('title') as $title) {
          
    $title->normalize();
            if (
    $title->firstChild$titles[] = $title->firstChild->data;
        }
        
        
    print_r ($titles);

    ?>
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  9. #9
    Join Date
    Mar 2012
    Posts
    6
    Thank you so much for your help! I am new to php (started learning today ) but this is exactly the kind of code i needed.

  10. #10
    Join Date
    Mar 2012
    Posts
    6
    Do you know of any tutorials that are related to the code you have given me?

  11. #11
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles