1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Is there a plugin to spider the content of outgoing links within a post?

Discussion in 'WordPress' started by Dinho78, Apr 29, 2010.

  1. #1
    Hey there,

    I'm wondering if anybody knows if there's a plugin that is able to spider the content of outgoing links that are in a post. In my case I'm importing an RSS feed, and each rss item contains a link. What I would like to do is spider that link for it's content and tag the post on my site with the found content. Does anyone know if that's possible at all?
     
    Dinho78, Apr 29, 2010 IP
  2. Web4Guru

    Web4Guru Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I couldn't find any plugins in my brief search, but that doesn't mean one doesn't exist, some deep digging through the plugin repository or Google may turn up something.

    It is possible. A script could be written to parse the RSS content for links, then there are a few php functions that could be used to go to each link and get the pages content. I think you can use php's curl function to retrieve the page and then parse it for the relevant content. There is also this function, "How Do I Read the Contents of a Remote Web Page Using PHP?", used with this function if your host has the load() function disabled, "load() Function for PHP - Fetch URL Content", which seems to have a similar goal. I'm sure there are other ways to do it too, I'm surprised no on else has posted anything.

    The next part would involve how to determine the tags generated from the content and getting those tags added added to the post, which involves areas of WordPress I am not as familiar with. So the whole idea is possible, somewhat complex, but possible.
     
    Web4Guru, May 3, 2010 IP
  3. Dinho78

    Dinho78 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your reply. I'll check out the links you posted. I know I can filter out links from rssfeeds with Yahoo Pipes, and maybe something like Autoblogged is able to do the rest...
     
    Dinho78, May 4, 2010 IP