Print Page | Close Window

News Script

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=2573
Printed Date: 29 March 2026 at 8:18am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: News Script
Posted By: sharmasumit83
Subject: News Script
Date 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/ - http://www.sumitsharma.tk



-------------
Sumit



Replies:
Posted By: Bluefrog
Date 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/ - http://www.coalesys.com/products/httpclient/features/  and http://www.excaliburcs.com/ecshttp.php - http://www.excaliburcs.com/ecshttp.php  or you can get one from  http://www.serverobjects.com/ - 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

 



Posted By: Bluefrog
Date Posted: 10 May 2003 at 10:20pm

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

http://w.moreover.com/categories/category_list_rss.html - 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.

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net