RSS PIONEERS SET OFF GOLD RUSH – Web Hosting
RSS PIONEERS SET OFF GOLD RUSH
Tony Dean
The nature of cyberspace is changing fast with the rush now on to set up rss news feeds. Every gram of news and current affairs is gleaned from the four corners of the globe so that we may be informed as to what is happening in hundreds of different commercial fields of endeavour.
Everything from what new item is selling well on eBay, to what "Wired Magazine" is saying about the latest technology. More and more magazine and newspaper publishers are gaining a foothold on this new juggernaut which is going to change the way we gather news.
Advertisers too are not left out. Already some of the largest media companies in the world are now poised to find advertising space for their clients branding campaigns, on any available web page that regularly features in rss feeds.
The media companies with billions of ad dollars to spend, will they say, be spending less on newspaper and t.v. advertising in the coming years, and will concentrate instead on blogs and rss feeds.
Competition will be fierce for every available space on the most popular feeds, some run by newspapers!
Many freelance journalists will be running rss feeds in direct competition with the newspaper employers who now pay them to gather news for their publication. There will be no editor to censor their news items, they will be free to write whatever they want.
This new found freedom for anyone in the world to be able to express their opinions without it costing anything, will make for a new House Of Babel, with maybe up to several millions of rss feeds within the next five years run by private individuals all over the world. The only needed resource to set up a rss feed is free hosting on a server anywhere in the world, and these web hosts are plentiful.
Press releases submitted to the biggest and well known media release agencies are appearing rapidly on rss feeds, with the publishers of these feeds scambling to put content on their feed almost on an hourly basis.
Commercial enterprises have never had it so good to get their press release into circulation so quickly as more and more commercial news, via press releases, is needed to fill the ever available channels being run by rss feed publishers. Even badly written press releases that under normal circumstances would not find a publisher willing to print it, will be readily accepted by rss feed publishers looking avidly for more content. This content may only be on a rss feed for the space of one hour before it is replaced by something else, but it will have the potential to be seen by lillions of people world wide.
This is the potential that big media companies are now eyeing.
One rss feed publisher charges $6,000 for an item of news to be on one of his feeds for the space of one day. So the potential for earning substantial incomes from publishing your own rss feed can be huge.
Many web publishers will change tack and embrace rss feeds as being potentially more commercially viable than publishing a web site.
Many spammers will change to running as many rss feeds as possible to saturate the market, since spam filters are proving very effective for email.
How easy is it to put up a rss feed
If you have web hosting already, it can be set up in 5 minutes!
All it needs is a text file placed on the server, and the feed is live to the whole world. Instant rss feed publishing!
About The Author
Tony Dean is a published author and webmaster. Author of the bestselling ebook on setting up a rss feed "Really Simple RSS" available from Clickbank or his site:- http://www.ebook-sales.com/rss.html
RSS FEEDS: Whither Thou Goest – Marketing
RSS FEEDS: Whither Thou Goest
Tony Dean
I open up the Feed Reader every day on my laptop and cruise the news feeds I subscribe to. The amount of information is now overwhelming, I need to just subscribe to only the feeds that are of immediate interest, else I would be reading feeds twenty four hours every day.
When I click on a link to find out more about a news item, I am taken to a web page with the article of news on it, also there are banner ads, advertising icons to click on, and other side news items to click to take me elsewhere.
The potential for advertising on those web pages for interested marketers is great, not withstanding the change in the news article each day on that web page. One day it might be about Amazon and the outages they kept getting, or the next it could be a pending court case about cybersquatting a brand name. Whatever article is shown the advertisers get their message across. It may not be part of the advertising ploy to sell goods and services from that advert, but to brand their products, or name, for future sales.
One research company predicts internet advertising revenues will rise by 19% next year, they also predict that newspaper advertising will drop considerably.
Future habits of net cruisers will be to immediately open up the feeds and cruise all the latest news, in contrast to going for Google and Yahoo, inputting search terms, and then cruising only those web sites that come up. Please! Dont laugh, most of us still do this!
If a web site has not got its own news feed, it will not get any eyeballs.
Those interested in marketing to the masses should think about trying to get adverts placed on pages of those sites with a news feed, with their name, or web address written prominently, for cruisers to come and visit, but the main objective is to create branding.
The usage of search engines for locating web sites will decline, unthinkable at the moment for most internet users, but their rss feeds directories will be the most sought after to be able to access more feeds. So search engines will still survive, but usage habits will change.
The big-dogs in rss feeds update news on their feeds every fifteen minutes or so, they know that to keep a captive readership that they have to update frequently, or they will lose eyeballs to some other service thats giving out more frequent news. This is critical from an advertisers point of view who wants his ads showing on web pages with updated news as frequently as possible.
I can feel the nudging elbows already as advertisers are trying to get the best spots.
The most money to be gained from rss feeds is by the person who owns one, the advertising revenue from spots on the web pages the feed points to will be flooding in, and with the decline in effectiveness of newspaper advertising, the rss feeds are the only place most advertisers are going to spend their money. The younger tech-savvy 18-24 year olds dont buy newspapers, they also dont switch on the television as much anymore, so television advertisers are looking at rss feeds, especially the big media companies who have millions of ad dollars to spend.
Remember this, anybody, even you, can put up a rss feed.
About The Author
Tony Dean is a published author and runs a website at:- http://www.ebook-sales.com. He is author of the e-book:-"Really Simple RSS" available from his web site.
Screen Scraping Your Way Into RSS – Web
Screen Scraping Your Way Into RSS
Dennis Pallett
Introduction
RSS is one the hottest technologies at the moment, and even big web publishers such as the New York Times are getting into RSS as well. However, there are still a lot of websites that do not have RSS feeds.
If you still want to be able to check those websites in your favourite aggregator, you need to create your own RSS feed for those websites. This can be done automatically with PHP, using a method called screen scrapping. Screen scrapping is usually frowned upon, as its mostly used to steal content from other websites.
I personally believe that in this case, to automatically generate a RSS feed, screen scrapping is not a bad thing. Now, on to the code!
Getting the content
For this article, well use PHPit as an example, despite the fact that PHPit already has RSS feeds http://www.phpit.net/syndication/.
Well want to generate a RSS feed from the content listed on the frontpage http://www.phpit.net. The first step in screen scraping is getting the complete page. In PHP this can be done very easily, by using implodefile"", "[the url here]"; IF your web host allows it. If you cant use file youll have to use a different method of getting the page, e.g. using the CURL library http://www.php.net/curl.
Now that we have the content available, we can parse it for the content using some regular expressions. The key to screen scraping is looking for patterns that match the content, e.g. are all the content items wrapped in <div>s or something else If you can successfully discover a pattern, then you can use preg_match_all to get all the content items.
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;
Like I said, the next step is to retrieve the individual information, but first lets make a beginning on our feed, by setting the appropriate header text/xml and printing the channel information, etc.
// Begin feed
header "Content-Type: text/xml; charset=ISO-8859-1";
echo "<xml version="1.0" encoding="ISO-8859-1" >
";
>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<channel>
<title>PHPit Latest Content</title>
<description>The latest content from PHPit http://www.phpit.net, screen scraped!</description>
<link>http://www.phpit.net</link>
<language>en-us</language>
<
Now its time to loop through the items, and print their RSS XML. We first loop through each item, and get all the information we get, by using more regular expressions and preg_match. After that the RSS for the item is printed.
<php
// Loop through each content item
foreach $matches[0] as $match {
// First, get title
preg_match "/">[^`]*</a></h3>/", $match, $temp;
$title = $temp[1];
$title = strip_tags$title;
$title = trim$title;
// Second, get url
preg_match "/<a href="[^`]*">/", $match, $temp;
$url = $temp[1];
$url = trim$url;
// Third, get text
preg_match "/<p>[^`]*<span class="byline">/", $match, $temp;
$text = $temp[1];
$text = trim$text;
// Fourth, and finally, get author
preg_match "/<span class="byline">By [^`]*</span>/", $match, $temp;
$author = $temp[1];
$author = trim$author;
// Echo RSS XML
echo "<item>
";
echo " <title>" . strip_tags$title . "</title>
";
echo " <link>http://www.phpit.net" . strip_tags$url . "</link>
";
echo " <description>" . strip_tags$text . "</description>
";
echo " <content:encoded><![CDATA[
";
echo $text . "
";
echo " ]]></content:encoded>
";
echo " <dc:creator>" . strip_tags$author . "</dc:creator>
";
echo " </item>
";
}
>
And finally, the RSS file is closed off.
</channel>
</rss>
Thats all. If you put all the code together, like in the demo script, then youll have a perfect RSS feed.
Conclusion
In this tutorial I have shown you how to create a RSS feed from a website that does not have a RSS feed themselves yet. Though the regular expression is different for each website, the principle is exactly the same.
One thing I should mention is that you shouldnt immediately screen scrape a websites content. E-mail them first about a RSS feed. Who knows, they might set one up themselves, and that would be even better.
Download sample script at http://www.phpit.net/viewsource.phpurl=/demo/screenscrape%20rss/example.php
About The Author
Dennis Pallett is a young tech writer, with much experience in ASP, PHP and other web technologies. He enjoys writing, and has written several articles and tutorials. To find more of his work, look at his websites at http://www.phpit.net, http://www.aspit.net and http://www.ezfaqs.com