Restsharp总是通过Twitter获得空响应

时间:2019-12-25 10:12:51

标签: c# twitter restsharp

这总是在Twitter中返回空内容

var client = new RestClient("https://www.twitter.com/web/search/topsearch/?query=hisham");
           client.Timeout = -1;
           var request = new RestRequest(Method.GET);
           IRestResponse response = client.Execute(request);
           Console.WriteLine(response.Content);

但是在instagram上可以正常工作

            var client = new RestClient("https://www.instagram.com/web/search/topsearch/?query=hisham");
            client.Timeout = -1;
            var request = new RestRequest(Method.GET);
            IRestResponse response = client.Execute(request);
            Console.WriteLine(response.Content);

0 个答案:

没有答案