dimanche 8 mars 2015

how to import and display custom rss in our website

i have to show news title of other popular website those one that related to our website or in other word for example i need to show those news title that have contain my favorite keyword. for example "Kabul Peoples".


i know i can import other website news through their RSS feed but how to import favorite or custom rss. or is there any other solution to this issue?


for example for bbc persian i can easily import their rss to my website through xml update. but need to have those news that contain my favorite keyword.


with these scripts easily i can show bbc persian news on my website:



<script type="text/javascript" src="http://ift.tt/JuZcy0"></script>
<script src="http://ift.tt/1shOv2d" type="text/javascript"></script>

<style type="text/css">
@import url("http://ift.tt/1s3exef");

#feedControl {
margin-top : 10px;
margin-left: auto;
margin-right: auto;
width : 440px;
font-size: 12px;
color: #9CADD0;
}
</style>
<script type="text/javascript">
function load() {
var feed ="http://ift.tt/18tVQsb";
new GFdynamicFeedControl(feed, "feedControl");

}
google.load("feeds", "1");
google.setOnLoadCallback(load);
</script>


in body easily data will dispaly by this line of code:



<div id="body">
<div id="feedControl">Loading...</div>
</div>


i hope you guys understand my mean.





Aucun commentaire:

Enregistrer un commentaire