示例 - rss 新闻阅读器

HTML输出结果提取所有RSS新闻,全部来自网站http://rss.news.yahoo.com/rss/trech

 

输出:

Review: Netflix and Hulu's new scripted originals (AP)

In this image released by Netflix, Steven Van Zandt is shown in a scene from 'Lillyhammer. Both Netflix and Hulu are debuting their first stabs at original scripted programming. Netflix has released all eight episodes of 'Lilyhammer' a fish-out-of-water drama with Steve Van Zandt, and on Tuesday, Hulu will premiere 'Battleground,' an 'Office'-style political faux-documentary. (AP Photo/Netflix)AP - Within just over a week, Netflix and Hulu are both debuting their first stabs at original scripted programming.




Netflix settlement trims 14 pct off 4Q earnings (AP)

AP - Netflix pressed the rewind button on its fourth-quarter earnings after settling allegations that the video subscription service violated a consumer-privacy law.



LinkedIn's 4Q revenue doubles, stock soars 8 pct (AP)

FILE - In this May 19, 2011 file photo,the LinkedIn logo is displayed in the foyer at headquarters in Mountain View, Calif. LinkedIn Corp., releases quarterly financial results Thursday, Feb. 9, 2012, after the market close. (AP Photo/Paul Sakuma, File)AP - LinkedIn provided further evidence of online networking's popularity and moneymaking potential with a fourth-quarter performance that got a glowing review on Wall Street.




Red-hot valentines for the guys, gals, and geeks we love (Yahoo! News)

Yahoo! News - Chocolates that you picked up from the grocery store on the way home from work a few minutes before the big V-Day date are not sexy. In the world of fine taste, they rate somewhere around squirt cheese, Spam, and tuna casserole — which &



Italian satellite is a laser disco ball for science (Yahoo! News)

Yahoo! News - If Albert Einstein were alive to witness Italy's Laser Relativity Satellite (LARES) in action, he might just start dancing. That's because the tungsten sphere, just over a foot in diameter, is meant to orbit the Earth and help scientists prove part &



7 Marketing Lessons From RIM's Failures (Mashable)

Mashable - Alex Goldfayn is CEO of the Evangelist Marketing Institute. His new book is called Evangelist Marketing: What Apple, Amazon and Netflix Understand About Their Customers (That Your Company Probably Doesn't).



First public photos of Blue Ivy Carter go online (AP)

In this undated image released by Beyonce.com, Blue Ivy, the daughter of rapper Jay-Z and his singer wife Beyonce Knowles, is shown in a recent family photo. Photos of the 1-month-old were posted by her parents on Tumblr blog page http://helloblueivycarter.tumblr.com. A hand-written note accompanying the photos reads, 'We welcome you to share our joy.'  (AP Photo/Ed Burke for Beyonce.com) MANDATORY CREDITAP - She's been a sensation since she's been born, and now Blue Ivy has made her public debut.




Path fumble highlights Internet privacy concerns (Reuters)

Reuters - A privacy debate surrounding fledgling social network Path went viral this week, triggering discussions on blogs and on Twitter about how far social networks can go in using members' private data.



Viral video: Father shoots daughter's laptop after she whines about parents on Facebook (Digital Trends)

Digital Trends - Racking up over 3.5 million views on YouTube over the last 48 hours, a North Carolina man named Tommy Jordan, father of a fifteen-year old teenage girl named Hannah, decided to respond to his daughter’s complaints about their family life. His daughter posted a lengthy rant about her parents on Facebook and attempted to hide the post with the privacy settings Facebook provides for all users. However, her father somehow ended up with a copy to her diatribe and decided to film a video response called “Facebook Parenting: For the troubled teen”. He had recently spent over $100 as well as several hours of his time upgrading her laptop, thus the actions on the video were very much an emotional response to what he perceived was a lack of gratitude on her part.



Android@home could rival Apple AirPlay (Appolicious)

Appolicious - One area in which Google has yet to catch up with Apple is home entertainment. That may soon change, as Google is reportedly working on an Android-based home music system called Android@home. Such a system would likely be among the first products to come out of Project Tungsten, which Google demonstrated at their I/O conference last spring. There, Google showed a tablet that could manage various aspects of the home, including turning lights on and off, sending music from the Internet to a hi-fi, and speakers laced with an NFC chip to initiate music play.



Twitter abuzz with rumor of Kim Jong-un assassination, US officials say he's just fine (Digital Trends)

Digital Trends - “Reports of my death are greatly exaggerated,” Mark Twain famously said upon hearing that a newspaper had published his obituary.



Google Wallet a security risk: researchers (Reuters)

Reuters - Security researchers said they found a vulnerability in the Google Inc mobile payments platform which is currently available in phones sold by Sprint Nextel Corp.



Apples iOS surpasses Mac OS X in web traffic (Appolicious)

Appolicious - Apples mobile devices apparently have been taking a bite out of the larger PC market, but theyre also eating up some of Apples own computer market share, a new web traffic study suggests.



Microsoft to beat Apple at retail by being... less crowded? (Digital Trends)

Digital Trends - Try to imagine you are Microsoft’s CEO, Steve Ballmer. You’re weary of Apple’s perennial coolness, and of the fact that Mac sales have been growing at a startling clip. Your company basically invented the tablet 10 years ago, but didn’t have the chutzpah to take it mainstream, and now Apple has built the most valuable company in the world on the popularity of mobile devices. You’re still essentially minting money, Windows 8 is just over the horizon, but a voice in the back of your head is nagging that something needs to change. Found in this position, you might direct all your company’s resources toward innovation, to creating fascinating new products the world can’t live without. Or, you could just start building Microsoft retail stores directly across the mall from Apple Stores. As Ballmer told Business Week recently, “Well, the traffic is going to be there, and we’ve got to beat them anyway.”



Mystery: Apple Secretive About Ongoing iTunes Store Hacks [VIDEO] (Mashable)

Mashable - iTunes Store users have long reported curious problems with Apple's digital store -- mysterious purchases, gift card money disappearing, changes to account information. And recent reports have revealed that those complaints account for more than 70 pages on an Apple forum.



iPads for the US Air Force? 18,000 may soon be purchased (Digital Trends)

Digital Trends - When it comes to purchasing equipment, most military machines around the world will spend their time leafing through catalogs packed with bullets and bombs. The US Air Force (USAF), however, is also taking a close look at something else—Apple’s iPad.



Google working to patch Wallet security holes (Appolicious)

Appolicious - One of the big pushes Google is making for the future of its Android mobile platform is in Google Wallet, the near-field communication software that lets users make purchases in brick-and-mortar stores using only information stored and broadcast over short range by their smartphones.



Now You Can Fit the Entire Pirate Bay Site On a USB Stick [VIDEO] (Mashable)

Mashable - One Pirate Bay user successfully ported the whole of The Pirate Bay onto a USB drive. This is made possible now that the site has transitioned to magnet links to save on bandwidth and likely because it leaves behind less potentially incriminating evidence on The Pirate Bay's own servers.



脚本源代码:

# File: rss_main.w
# Name: RSS READER
# Description: output html retrieves all rss news from http://rss.news.yahoo.com/rss/tech
# Input: URL [http://rss.news.yahoo.com/rss/tech]
# Output format: HTML file
# Output fields: linked title, description (with the html code)

#<Logger File>
#    Global
#    FileName rss_log.log
#    # log all messages up to debug messages
#    Level debug
#</Logger>

<Section>
    Name RSS_reader
    Define $output_file rss_output.html
	
    # clean output file
	<Action Print>
        FileName {$output_file}
        FileMode Write
    </Action>
    
    #load RSS feed from yahoo
    <Action ContentURL>
        URL http://rss.news.yahoo.com/rss/tech
        RemoveNewLine
    </Action>

    #while is inside any rss item, try to match it and print to HTML output
    <Section While>
        <Pattern>
            Name rss_item
            
            #pattern for matching one item in channel
            RegExp <item>*<title>{$rss_item_title}</title>*\
                    <link>{$rss_item_link}</link>*<guid{:re([^>]*)}>*</guid>*<source>*</source>*\
                   <category>*</category>*<pubDate>{$rss_item_publicated}</pubDate>*\
                    <description>{$rss_item_description}</description>
            HtmlSpecialChars
        </Pattern>

        #print matched data to file
        <Action Print>
            FileName {$output_dir}{$output_file}
            Text <a href="{$rss_item_link}">{$rss_item_title}</a><br>\
                 <p>{$rss_item_description}</p><br><br>
        </Action>
    </Section>
</Section>    

#start execution with section RSS_reader
Main RSS_reader
Stay in touch with UnitMiner
© 2004-2012 QualityUnit.com, All rights reserved