Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I am designing a website and it uses Windows Forms (in Visual Studio 10) in which for example i have five-six URLs. Now i am displaying them on home page of my website xyz.com

What i want is, i want to calculate total no. of tweets for all links and display links based on no. of times they are being tweeted/retweeted.

for a url we can calculate no. of tweet using twitter api
HTML
http://urls.api.twitter.com/1/urls/count.json?url=YourURL


I know all the stuff like receiving JSON values in a string and parsing json to retrieve tweet counts and then compare and display links based on the priority etc.

What i have been using till now it is initiating all the process using a Click_Button.

But i want to know how can i automate this all for each 10 minutes. Its like a end user can see urls priority with just refreshing the page.
Posted
Updated 4-Jan-12 11:28am
v2
Comments
Sergey Alexandrovich Kryukov 3-Jan-12 12:48pm    
Why running a separate process? This is a bad idea. Do you have or going to develop source code for it?
--SA
LockedOut 4-Jan-12 1:25am    
Sorry i din't get it ?

1 solution

1) You wouldn't be using Windows Forms to design a website, you are using asp.net.
2) Use the website only to display data gathered and stored in a database or data file of some sort.
3) Use an Windows Service running on a timer to gather the information and store it in a database or data file of some sort.

Never try to do too much with the web application itself. System and data manipulation processes should be handled from separate processes.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900