RSS Reader - Revisited
I did some changes in RSS Reader code which I previously posted, now I have added hyperlink to the title of the link, in case I like it, I will click the link to get the page.
$z=@()
$f=””
$j=””
$para=”
”
$hrline=”
”
$HTMLfile=new-item -type file “rssstuff.html” -force
Import-Csv rsslinks.csv | %{
$a=([xml](new-object net.webclient).downloadstring($_.links)).rss.channel.item | sort -desc | select -first 5
add-content $HTMLfile $_.topic
$A | %{
$z=$para+$f+$_.link+$g+$_.title+$J+$para
add-content $HTMLfile $z
}
add-content $HTMLfile $hrline
}
I have used CSV file, for playing around with title and topics of RSS’s xml file.
topic,links
India,http://www.rediff.com/rss/inrss.xml
US,http://www.rediff.com/rss/usrss.xml
NEWS,http://www.rediff.com/rss/newsrss.xml
International,http://www.rediff.com/rss/intnewsrss.xml
Get-Ahead,http://www.rediff.com/rss/getaheadrss.xml
Information You Can Use,http://www.rediff.com/rss/iycurss.xml
Business,http://www.rediff.com/rss/moneyrss.xml
Cricket,http://www.rediff.com/rss/cricketrss.xml
Sports,http://www.rediff.com/rss/sportsrss.xml
Movies,http://www.rediff.com/rss/moviesrss.xml
Interviews,http://www.rediff.com/rss/interviewsrss.xml
Now the output you get it here

1 comment:
※※※PReetamZ a big big news for you!...
Post a Comment