Created
August 30, 2017 15:18
-
-
Save anonymous/831e7d32e6aba2633dda5f7eda5baa10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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