Duckduckgo

using AngleSharp.Dom;
using AngleSharp.Html.Dom;
using AngleSharp.Html.Parser;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private string Title { get; set; }
private string Url { get; set; }

private string siteUrl = “https://duckduckgo.com/lite?q=” + “\”@applozic.com email”;
public string[] QueryTerms { get; } = { “Ocean”, “Nature”, “Pollution” };

internal async void ScrapeWebsite()
{
CancellationTokenSource cancellationToken = new CancellationTokenSource();
HttpClient httpClient = new HttpClient();
HttpResponseMessage request = await httpClient.GetAsync(siteUrl);
cancellationToken.Token.ThrowIfCancellationRequested();

Stream response = await request.Content.ReadAsStreamAsync();
cancellationToken.Token.ThrowIfCancellationRequested();

HtmlParser parser = new HtmlParser();
IHtmlDocument document = parser.ParseDocument(response);
GetScrapeResults(document);
}
private void button1_Click(object sender, EventArgs e)
{
ScrapeWebsite();
}

private void GetScrapeResults(IHtmlDocument document)
{
IEnumerable<IElement> articleLink;
string dd = document.Body.InnerHtml;
textBox1.Text = dd;
foreach (var term in QueryTerms)
{
articleLink = document.All.Where(x => x.ClassName == “views-field views-field-nothing” && (x.ParentElement.InnerHtml.Contains(term) || x.ParentElement.InnerHtml.Contains(term.ToLower())));
}

//if (articleLink.Any())
//{
// // Print Results: See Next Step
//}
}
}
}