vendredi 14 mai 2021

how to get data from https://ift.tt/3tNT1fq in C#

I am using https://instagram.com/name/?__a=1 to check if a username is taken (if the browser displays {} that means the username is not taken, as there is no data inside the '{}')

Now i wanted to translate this "idea" to C# but tbh i have no idea how to code-"search" for an url and retrieve whatever data the url outputted (in this case the {text} ). my goal is to make a console app where i ask for a username then check if it is taken, i output to the console something like "name is not available" or if it is not taken i output "name taken". the code for that itself is pretty much simple but i am just stuck at the part of searching an url and getting back what the url outputs.

sorry for any english mistakes, and thanks in advance!

TL;DR : how to: send an url in c# and to get it to return data to be used.




Aucun commentaire:

Enregistrer un commentaire