public override R Parse(HtmlNode node) { try { string id = XPathHelper.GetTweetId(node); string text = XPathHelper.GetTweetText(node); string userId = XPathHelper.GetUserId(node); string userScreenName = XPathHelper.GetUserScreenName(node); string userName = XPathHelper.GetUserName(node); DateTime?createdAt = XPathHelper.GetPublishDate(node); int retweets = XPathHelper.GetRetweetsCount(node); int favourites = XPathHelper.GetFavoritesCount(node); int comments = XPathHelper.GetCommentsCount(node); R r = new R { Id = long.Parse(id), Text = text, UserId = userId, UserScreenName = userScreenName, UserName = userName, CreatedAt = createdAt, Retweets = retweets, Favourites = favourites, Comments = comments }; return(r); } catch (Exception ex) { RaiseParserError($"Unable to parse a single {typeof(R).FullName} item from HtmlNode. This item will be skipped.", ex); return(null); } }