SO I need to do some SERPing and decided to use https://www.serphouse.com/
on that link there there is an example demo , i need t0 implement that code into my c# program. which should theoretically take links found by SERPHOUSE and finds the HTML of each website linked
underneath the demo part there is different languages they have written it in , but if you make a free account it gives C# restsharp code which i have no idea what it does , i think it extracts the HTML of the given website
Successfult request
var client = new RestClient("https://api.serphouse.com/serp/live");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "Bearer 39VIQbPC7TJh0SSxIB7pkbcEl6qS6ILSFMooJuAcEUjEo8EsVHZLa3ZBlXZ9");
request.AddParameter("application/json", "{\n\t\"data\":\n\t\t{\n\t\t\t\"domain\":\"google.co.uk\",\n\t\t\t\"lang\":\"en\",\n\t\t\t\"q\": \"Coffe Shops\",\n\t\t\t\"loc\":\"Aarau,Aargau,Switzerland\",\n\t\t\t\"device\": \"desktop\",\n\t\t\t\"serp_type\": \"web\"\n\t\t}\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
but this is not the same code that is given on the demo on the main page (the link above)
so i was wondering if anybody could help me figure out what i would need to do to get results like they show in the demo but in C#
What I have tried:
fOLLOWING THE TUTORIAL
Java to C# converters --- horrible ideas