473,657 Members | 2,528 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trying to use a Yahoo news feed RSS via javascript

Hey gang, I hope you're all well and you're having an enjoyable week

I'd love to be able to have a custom news feed on my web page through
Javascript

The only custom news feed I can find for free is from Yahoo. Are there
any more?

Now, for my web page I can get this to work fine:

<script language="Javas cript"
src="http://www.freenewsfee d.com/custom/?javasc=1&
table_bgcolor=7 799FF&timestrip _bgcolor=F0E7BF &
timestrip_font_ color=ffffff&ta ble_cellpadding =5&table_cellsp acing=1"></script>
that's from freenewsfeed.co m.

However whenever I try the one from Yahoo using this:

<script language="Javas cript"
src="http://news.search.yah oo.com/news/rss?p=mysearch& ei=UTF-8&fl=0&x=wrt" ></script>
It doesn't work.

It seems that the XML from the URL:

http://news.search.yahoo.com/news/rs...F-8&fl=0&x=wrt

Is different. Is that correct. Keep in mind I'm a newbie and this is
my first attempt.

Could somebody possibly tell me how to get the free custom Yahoo script
to work, or alternatively suggest an alternative news feed that allows
my to submit a custom search

Thank you very much for your help. have a nice day!

kot

Jul 25 '05 #1
1 2728
On 25 Jul 2005 15:08:19 -0700, "it hates me" <ki************ @gmail.com>
wrote:
The only custom news feed I can find for free is from Yahoo. Are there
any more?
Thousands
Now, for my web page I can get this to work fine:

<script language="Javas cript"
src="http://www.freenewsfee d.com/custom/?javasc=1&
table_bgcolor= 7799FF&timestri p_bgcolor=F0E7B F&
timestrip_font _color=ffffff&t able_cellpaddin g=5&table_cells pacing=1"></script>
That's not RSS. It's a client-side script, a piece of JavaScript, which
is _referred_to_ by your page, then gets loaded by my browser on my
computer. Then my computer ignores it, because I don't trust such
scripts from funny locations I don't expect to be visiting.

This just isn't a good way t do things.
<script language="Javas cript"
src="http://news.search.yah oo.com/news/rss?p=mysearch& ei=UTF-8&fl=0&x=wrt" ></script>

It doesn't work.

It seems that the XML from the URL: Is different.


In that is _is_ XML, and indeed RSS 2.0

This is "data" - raw newsness, piped to you in concentrated form. To
use it, run something on your server that can make sense of it. Search
on RSS to find out what, and how you do it.

Then abandon the whole idea. Maybe you liek the idea of offering news
from your website, but to be honest I'm just not interested. You're not
the BBC, so I don't want to read _your_ news.

If I want my own news, then Ill get RSS feeds myself and assemble them
myself. I use an "RSS Aggregator" to do this, not some other person's
website.

There are good reasons to take news onto you site and re-broadcast it,
but really you need to be doing some _with_ it to be interesting. I've
set up sites before that do this - they take a number of vaguely related
newsfeeds from many different sources, then turn them into a single
filtered newsfeed that's about one particular filtered facet of this.
This is a specialist application though and you have to be offering some
additional benefit for me before I'll consider using it. Just recycling
isn't enough.
Jul 26 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3378
by: apchar | last post by:
I am trying to use php as a kind of servlet to act as a middle man between a java applet and mysql. I know java has jdbc but it's flakey and painful. php access to mysql is much nicer. So I have: 1. An html page that holds the applet. 2. a php page that accepts data submitted to it by the applet via the $_POST array and writes it to the mysql database. This page never makes it to the browser window. 3. a simple Thank you page that shows...
2
1366
by: Gaikokujin Kyofushso | last post by:
Hi, I wanted to make a "news feed search" like for agriculture, and then have the results put into RSS so I could view it from something like kinja.com. Putting it into "My Yahoo" was no problem but I am getting the impression they don't make getting it as a regular rss/xml feed an option. If I am wrong, could anyone out there give me a tip/point-in-the-right-direction on how to get a rss output from a yahoo (or Google but I am pretty...
4
1854
by: lkrubner | last post by:
I've a client who, I think, writes his essays in Microsoft Word on a Macintosh, then copies and pastes it to a form to upload it to his weblog. The weblog then creates an RSS feed. The weblog and RSS feed are created using a simple PHP script I wrote. His RSS feed is not validating, apparently because of the Word "smart quotes". This is a guess on my part. I need to find out for sure what character is causing the rss failure. How do I do...
11
1961
by: Brett | last post by:
In Yahoo mail, I click the Inbox link and see my messages. If I view source, I don't have HTML which contains the URL of each message. The source HTML contains javascripting and framesets. This is different from what I am seeing. If I right click on a message link and select "copy shortcut", I can paste this link into my browser. This brings me to my message. If I view source, once again, it is javascript and framesets. How do I...
3
1569
by: Jofio | last post by:
In my frame based page, I have a hyperlink in the top frame called "header" which, when I click, should make two different pages to be loaded and displayed into two different frames, namely "thumbnails" frame and "main" frame simultaneously. My framed page is defined as follows: <frameset rows="15%,*,15%"> <frame src="headerWelcome.html" name="header" /> frameset cols="20%,*,20%">
7
1716
by: HI-Liter | last post by:
On the web page http://news.yahoo.com if you go down the page to "Top Stories", "Most Popular", or any of the other categories, and hover over the links to various articles in any of these categories, a clean info window pops up with pictures and a quick description of what is in the article. I've tried to figure out how it's done but haven't been able to. Anyone know how to create one of those pop up windows?
9
3396
by: StewartS | last post by:
Hi there, I'm looking to display the Yahoo Weather feed on my website (http://developer.yahoo.com/weather/). I am using Visual Web Developer 2005. Everything works fine while parsing normal lines in the feed like this (on the aspx page): <asp:DataList ID="DataList1" runat="server" DataSourceID="XmlDataSourceEd" Width="523px"> <ItemTemplate>
6
2368
by: affiliateian | last post by:
Total newbie here for this so please be patient. We manually update our XML feed when we publish an article on our website. Can we add a javascript tracking pixel (from phpadsnew) into the XML file to track how many times our feed was accessed? Just to get a rough idea how manyh subscribers we have? Not sure if copying and pasting a javascript into the XML source would work.
8
2334
by: Greg C. | last post by:
I tried tackling this problem about 6 months ago, but after going almost completely insane I gave up, since my news feed seemed to display just fine anyways. However, in an effort to have my feeds in complete compliance, I am trying to deal with the problem again. When I try to validate my feeds I get the following error: Line 17, column 0: Invalid HTML: unknown declaration: u'BR', at line 5, column 124 (277 occurrences) &lt;BR&gt;&quot;&lt;a...
0
8326
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8845
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5647
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2745
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1973
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.