Skip to content

Instantly share code, notes, and snippets.

Created August 30, 2017 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/831e7d32e6aba2633dda5f7eda5baa10 to your computer and use it in GitHub Desktop.
Save anonymous/831e7d32e6aba2633dda5f7eda5baa10 to your computer and use it in GitHub Desktop.
using System;
using System.Net;
using System.Text.RegularExpressions;
namespace WikiHello
{
class WikiHello
{
static void Main(string[] args)
{
Console.WriteLine();
Console.Write("[");
string s = new WebClient().DownloadString(
"https://test.wikipedia.org/w/api.php?" +
"action=query&format=xml&prop=revisions&titles=User%3AVort%2FHello&rvprop=content");
Console.Write(Regex.Match(s, "e\">([^<]+)</r").Groups[1].Value);
Console.WriteLine("]");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment