string sourceContent = project.Variables["GET"].Value;
//var atribut = project.Variables["class"].Value;
Reader reader = new Reader(project.Variables["URL"].Value, sourceContent);
reader.ClassesToPreserve = new string[] {""+project.Variables["class"].Value+""};
reader.AddOptionToRegularExpression(Reader.RegularExpressions.Positive, "principale");
reader.ReplaceRegularExpression(Reader.RegularExpressions.Videos, @"\/\/(www\.)?(dailymotion\.com|youtube\.com|youtube-nocookie\.com|player\.vimeo\.com)");
// get the article
Article article = reader.GetArticle();
// get info about images in the article
var images = article.GetImagesAsync();
images.Wait();
//project.SendInfoToLog(String.Format("Uri: {0}", article.Uri));
project.SendInfoToLog(String.Format("Title: {0}", article.Title));
//project.SendInfoToLog(String.Format("Byline: {0}", article.Byline));
//project.SendInfoToLog(String.Format("Author: {0}", article.Author));
//project.SendInfoToLog(String.Format("Language: {0}", article.Language));
//project.SendInfoToLog(String.Format("TimeToRead: {0}", article.TimeToRead));
//project.SendInfoToLog(String.Format("Excerpt: {0}", article.Excerpt));
//project.SendInfoToLog(String.Format("TextContent:\n {0}", article.TextContent));
project.SendInfoToLog(String.Format("Content:\n {0}", article.Content));
project.SendInfoToLog(String.Format("Featured Image: {0}", article.FeaturedImage));
project.Variables["title"].Value = article.Title;
project.Variables["ContentHTML"].Value = article.Content;
project.Variables["imgHTML"].Value = article.FeaturedImage;