Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - News Script
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

News Script

 Post Reply Post Reply
Author
sharmasumit83 View Drop Down
Newbie
Newbie
Avatar

Joined: 03 May 2003
Location: India
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote sharmasumit83 Quote  Post ReplyReply Direct Link To This Post Topic: News Script
    Posted: 10 May 2003 at 1:06am

Dear Sirs,

I am Sumit Sharma from Jaipur, India.

I have already posted this message to the forum, somebody gave me link.
But i am not satisfied by the link.

My Query: Sir, I want to know that Can it is possible in ASP to make a script in which anybody
paste script on the webpage and he gets news.

Actually, I want to made a script in which the news is get from the news site. When the news
site updates its news, the script news will updates automatically on the site in which the script is pasted.

For Example:- 

I like the news on indiatimes.com and i want to made a script, from which, I will get a updated
news on my site from indiatimes.com Automatically updates on my site with respect to
indiatimes.com news updation.        

Can body help me, to made a script like that.

I am waiting for your Reply.

Thanking you, Sir

Yours faithfully,
Sumit Sharma.
Web: http://www.sumitsharma.tk

Back to Top
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2003 at 12:04pm

Your question has two answers:

1) It's called syndication, and you'd have to contact indiatimes.com to find out how they deliver their content, and how much it will cost to license it. This is legal.

2) It's called screen-scraping. Here are a couple components to help: http://www.coalesys.com/products/httpclient/features/ and http://www.excaliburcs.com/ecshttp.php or you can get one from http://www.serverobjects.com/. You can google for more. In order to implement what you want, you have to:

a) Create an instance of the object you want.
b) Grab the URL for the news.
c) Sort through all that text to find out what you want in there.
d) Spit out what you want in your own page.

By the way, screen scraping can be illegal, as you are essentially stealing content from someone else. You'll have to check your local laws to find out.

The first way is simple. They will tell you how to do it. The second way is specific to each site you want to scrape, and from what you are asking, it's not very easy. The indiatimes.com site is rather complex, but it is manageable.

For more information on screen scraping, check out some of the components above.

As for implementing it... it would be a very very bad idea to actually do that everytime someone visits. i.e. You don't want it done in real time. Rather, schedule it to be done say once every three hours or once a day when they update it.

Cheers

 

Back to Top
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2003 at 10:20pm

Here's another way - get the DotNetNuke portal, and use their news feed module. Here is one of the sources:

http://w.moreover.com/categories/category_list_rss.html

Or just program your own for that. It's topical though. Which may be better, depending on what you need.

 

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.