Beispiel #1
0
        private async Task <string> GetFirstSearchResultAddress(string searchAddress)
        {
            if (string.IsNullOrEmpty(searchAddress))
            {
                return(null);
            }

            await _htmlHandler.ParseAddress(searchAddress);

            var firstResult = _htmlHandler.SelectAnchor(FIRST_SEARCH_RESULT_SELECTOR);

            return(firstResult?.Href);
        }