Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Net;
- using System.IO;
- using System.Threading;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- string oldText = "";
- while (true)
- {
- WebClient client = new WebClient();
- StreamReader reader = new StreamReader(client.OpenRead("https://api.twitter.com/1/statuses/user_timeline.xml?screen_name=Dinnerbone"));
- string newText = reader.ReadToEnd();
- reader.Close();
- if (newText != oldText)
- {
- Console.Beep(2500, 10000);
- }
- oldText = newText;
- Thread.Sleep(1000);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment