SirCmpwn

Untitled

May 8th, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Net;
  6. using System.IO;
  7. using System.Threading;
  8.  
  9. namespace ConsoleApplication1
  10. {
  11. class Program
  12. {
  13. static void Main(string[] args)
  14. {
  15. string oldText = "";
  16. while (true)
  17. {
  18. WebClient client = new WebClient();
  19. StreamReader reader = new StreamReader(client.OpenRead("https://api.twitter.com/1/statuses/user_timeline.xml?screen_name=Dinnerbone"));
  20. string newText = reader.ReadToEnd();
  21. reader.Close();
  22. if (newText != oldText)
  23. {
  24. Console.Beep(2500, 10000);
  25. }
  26. oldText = newText;
  27. Thread.Sleep(1000);
  28. }
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment