"; $busqueda=$_POST['buscar']; echo"Búsqueda por .$busqueda"; $dummy2= '?q='.$busqueda.' -RT&count=250&result_type=mixed'; ECHO""; $settings = array( 'oauth_access_token' => "109964319-K6AHRrO4ohKlCc6Op9KeW7UCVgOgwjLLqnRST4L9", 'oauth_access_token_secret' => "w0dfFsN5UCss10qSPn2RJPLoTIfxP5Ysg0MXAfb9sR5zz", 'consumer_key' => "vj1gqnYD7zEGJc5pXUmGNjhsS", 'consumer_secret' => "AEy2zrWiPJ15X1GgpXsVhXPKSy4AWioyAg3DS7FHKaJbGeUXmZ" ); $url = "https://api.twitter.com/1.1/search/tweets.json"; $requestMethod = "GET"; $getfield = $dummy2; $twitter = new TwitterAPIExchange($settings); $twitter = new TwitterAPIExchange($settings); $dumy=$twitter->setGetfield($getfield) ->buildOauth($url, $requestMethod) ->performRequest(); $array = json_decode($dumy,true); for($t=0;$t<250;$t++){ $var0= ($array["statuses"][$t]["created_at"]); $var1= ($array["statuses"][$t]["text"]); $var2= ($array["statuses"][$t]["user"]["name"]); $var2c= ($array["statuses"][$t]["user"]["id"]); $var3= ($array["statuses"][$t]["user"]["screen_name"]); $var4= ($array["statuses"][$t]["user"]["location"]); $var6= ($array["statuses"][$t]["id_str"]); $var7= ($array["statuses"][$t]["user"]["friends_count"]); $var8= ($array["statuses"][$t]["user"]["created_at"]); $var9= ($array["statuses"][$t]["user"]["followers_count"]); $var10= ($array["statuses"][$t]["retweet_count"]); $var11= ($array["statuses"][$t]["entities"]["hashtags"][0]["text"]); $var12= ($array["statuses"][$t]["entities"]["hashtags"][1]["text"]); $var13= ($array["statuses"][$t]["entities"]["urls"][0]["url"]); $dummy= 'https://twitter.com/i/web/status/'.$var6; echo" "; echo""; } echo"
id_str FECHA TEXTO NOMBRE id SCREEN NAME UBICACION AMIGOS RTD SEGUIDORES RT #1 #2 URL Twitter
".$var6." ".$var0." ".$var1." ".$var2." ".$var2c." ".$var3." ".$var4." ".$var7." ".$var8." ".$var9." ".$var10." ".$var11." ".$var12." ".$var13."Ver
"; ?>

Comparte este Servcio a tus contactos!
PHP Code Snippets Powered By : XYZScripts.com