コード例 #1
0
        public void CheckGetLargeImage()
        {
            var html   = File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Files/Amazon/page_B01FCIJX7K.html"));
            var images = new AmazonPageParser().GetLargeImages(html);

            _log.Info(images.ToString());
        }
コード例 #2
0
        public string CallGetSpecialPrice()
        {
            var url      = "https://www.amazon.com/dp/B00XEUMHRW";
            var response = _htmlScraper.GetHtml(url);

            if (response.IsSuccess)
            {
                var result = new AmazonPageParser().GetSpecialSize(response.Data);
                if (result != null)
                {
                    return(result.Data);
                }
            }
            return(null);
        }