13 replies [Last post]
rmfred
rmfred's picture
Offline
Elder
Rock Springs, WY
Last seen: 1 year 50 weeks ago
Rock Springs, WY
Timezone: GMT-6
Joined: 2004-01-31
Posts: 1073
Points: 31

Anyone a guru when it comes to this?

I'm looking at creating a site that ideally I would like to have serve as a sort of "portal" for lack of a better term. I would like to scrape as many news items from as many sources as I can that pertain to a very small niche idea and small geographic area.

I've had a bit of a play with google news widgets etc and they seem decent enough but would like to know of other methods that someone has experience with as well.

Ideally these feeds would "show" the content on the site so the site can benefit from SEO and searches etc.

Hope someone can clue me in on this... extremely grateful for any help.
Thanks

Tags:
Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 14 weeks 5 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2043
Points: 2268

I've used this before:

I've used this before: http://www.aarondunlap.com/index.php?content=rss_get

That was long, long ago when I used to like PHP. IIRC, it's just for headlines though.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 37 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Rolling your own: jQuery json

Rolling your own:

jQuery json

SimpleXML functions PHP5 (not suitable for Vershwindende as he's a .nit kind of guy)

A class library for PHP (don't look Versh)

http://simplepie.org/

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 14 weeks 5 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2043
Points: 2268

Rolling your own is the best

Rolling your own is the best choice.

Hugo wrote:

... SimpleXML functions PHP5 (not suitable for Vershwindende as he's a .nit kind of guy) ...

Of course .NET has libraries for this. Linq to XML makes it a snap. Tongue

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 37 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

No I lost it somewhere in the

No I lost it somewhere in the first paragraph, too much techno babble, typical MSDN Big smile

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 37 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

So the only answer is a

So the only answer is a neutral common language so jquery json functions are probably simplest to use?

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

rmfred
rmfred's picture
Offline
Elder
Rock Springs, WY
Last seen: 1 year 50 weeks ago
Rock Springs, WY
Timezone: GMT-6
Joined: 2004-01-31
Posts: 1073
Points: 31

Rolling my own might be the

Rolling my own might be the best solution... but one that is probably over my head as well!

Headlines only could be an option also. I'm a raw newbie with regards to RSS so my learning curve is the steepest possible.

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 6 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Drupal has this feature built

Drupal has this feature built in, by default it shows the full feed.
I use it for the news page with slightly modified output to only show a teaser and link to the original article.

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 3 years 10 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

It's built into WordPress as

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 14 weeks 5 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2043
Points: 2268

Deuce wrote: It's built into

Deuce wrote:

It's built into WordPress as well.
http://codex.wordpress.org/Function_Reference/fetch_feed

Cool. I had no idea. When was that added?

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 3 years 10 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

It used to be a function

It used to be a function called fetch_rss, was implemented in version 1.5, but was deprecated in favor of fetch_feed in 2.8

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 14 weeks 5 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2043
Points: 2268

Deuce wrote: It used to be a

Deuce wrote:

It used to be a function called fetch_rss, was implemented in version 1.5, but was deprecated in favor of fetch_feed in 2.8

Though I've used it for years I suppose I just didn't delve into it deep enough. Smile

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 3 years 10 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

It's funny because I've

It's funny because I've gotten pretty deep into WordPress and there is still tons of stuff I am still finding out there are easier built in ways of doing things.

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 37 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Deuce wrote: It used to be a

Deuce wrote:

It used to be a function called fetch_rss, was implemented in version 1.5, but was deprecated in favor of fetch_feed in 2.8

Nothing clever though I suspect.

class-feed.PHP class file shows that WP are using simplePie class libraries as I mentioned above

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me