Website Content

  Homes arrow Website Content arrow Page 2 - Screen Scraping Your Way Into RSS
 Webmaster Tools
 
Base64 Encoding 
Browser Settings 
CSS Coder 
CSS Navigation Menu 
Datetime Converter 
DHTML Tooltip 
Dig Utility 
DNS Utility 
Dropdown Menu 
Fetch Content 
Fetch Header 
Floating Layer 
htaccess Generator 
HTML to PHP 
HTML Encoder 
HTML Entities 
IP Convert 
Meta Tags 
Password Encryption
 
Password Strength
 
Pattern Extractor 
Ping Utility 
Pop-Up Window 
Regex Extractor 
Regex Match 
Scrollbar Color 
Source Viewer 
Syntax Highlighting 
URL Encoding 
Web Safe Colors 
Forums Sitemap 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEBSITE CONTENT

Screen Scraping Your Way Into RSS
By: Dennis Pallett
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating:  stars stars stars stars stars / 0
    2006-07-27

    Table of Contents:
  • Screen Scraping Your Way Into RSS
  • For PHPit, the...
  • Like I said...
  • Now it's time...
  • Fourth, and finally...
  • And finally, the...

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     

    SEARCH DEV MECHANIC

    TOOLS YOU CAN USE

    advertisement

    Screen Scraping Your Way Into RSS - For PHPit, the...


    (Page 2 of 6 )

    For PHPit, the pattern that match the content is <div class="contentitem">[Content Here]<div>. You can verify this yourself by going to the main page of PHPit, and viewing the source.

    Now that we have a match we can get all the content items. The next step is to retrieve the individual information, i.e. url, title, author, text. This can be done by using some more regular expression and str_replace() on the each content items.

    By now we have the following code;

    <?php

    // Get page
    $url = "http://www.phpit.net/";
    $data = implode("", file($url));

    // Get content items
    preg_match_all ("/<div class="contentitem">([^`]*?)</div>/", $data, $matches);

    More Website Content Articles
    More By Jase Dow

       

    WEBSITE CONTENT ARTICLES

    - Words of Wisdom from SEO Chat Forums
    - Three Ways to Approach Content Differently
    - Thinking Beyond the Sale
    - Don`t Use Article Spinning Software
    - Give Customers the Gift of Convenience
    - Target Your Content for SEO
    - You Need Likes as Well as Links
    - Double Check These Before Going Live
    - Liven Up Your Blog with Video Content
    - Get Your Spelling and Punctuation Right
    - Improve Your Site`s Grammar
    - Content Marketing Checklist
    - Keep Traffic on Your Web Pages
    - Use a List to Increase Traffic
    - Write With a Purpose

    Developer Shed Affiliates

     



    © 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap