static void Main(string[] args) { var webScraper = new WebScraper(); var dataExporter = new CsvDataExporter(@"D:\export.csv"); var objectInfo = webScraper.ParseDocumentation(TableOfContentsUri, FunctionDetailsBaseUri) .GetAwaiter() .GetResult(); dataExporter.ExportData(objectInfo); }
static void Main(string[] args) { // Example of using WebScraper class while (true) { WebScraper webScraper = new WebScraper(); Console.Write("Please enter the name of the person you are looking for >"); string user_input = Console.ReadLine(); webScraper.GetNews(user_input, 10); // user input and number of results Thread.Sleep(2500); Console.Write("Please choose which article you would like to read >"); int chosen_article = Convert.ToInt32(Console.ReadLine()); webScraper.GetArticle(user_input, chosen_article); // user input and chosen article Console.ReadLine(); } }
static void Main(string[] args) { WebScraper webScraper = new WebScraper(); webScraper.GetHtml(); }
public AuctionService(WebScraper.WebScraper webScraper) { _documentAnalyzer = new DocumentAnalyzer(); _webScraper = webScraper; }