Beispiel #1
0
        // Extract a tags and attributes
        public static IEnumerable <Dictionary <string, string> > Links(this HttpWebResponse r)
        {
            if (linksCache.ContainsKey(r))
            {
                return(imagesCache[r]);
            }
            var result = r.GetTags("a");

            if (EnableCaching)
            {
                linksCache.Add(r, result);
            }
            return(result);
        }