diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-01-13 13:23:03 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-01-13 13:23:03 +0300 |
commit | 435b1d6a36693ba321d017b305c09f251995f0be (patch) | |
tree | ed8a8c8d11f12eb782101f12606fbcf73ee4598e /ImageGooglerForm.cs | |
parent | 09226d2df54a48f50b2ae34ac543e5079458ec96 (diff) |
Google Image search fix
Diffstat (limited to 'ImageGooglerForm.cs')
-rw-r--r-- | ImageGooglerForm.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ImageGooglerForm.cs b/ImageGooglerForm.cs index c4035f22..edbbca01 100644 --- a/ImageGooglerForm.cs +++ b/ImageGooglerForm.cs @@ -46,9 +46,16 @@ namespace com.clusterrr.hakchi_gui reader.Close();
response.Close();
var urls = new List<string>();
- string search = @"imgurl=(.*?)&";
+
+ string search = @"\""ou\""\:\""(?<url>.+?)\""";
MatchCollection matches = Regex.Matches(responseFromServer, search);
+ foreach (Match match in matches)
+ {
+ urls.Add(match.Groups[1].Value);
+ }
+ search = @"imgurl=(.*?)&";
+ matches = Regex.Matches(responseFromServer, search);
foreach (Match match in matches)
{
urls.Add(match.Groups[1].Value);
|