Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //CLI Twitter Search
- //@hecky hecky@neobits.org
- //http://Neobits.org
- //Script Creado en Bash que al ejecutarlo permite hacer uso del buscador de Twitter desde la comodidad de tu consola
- //Algunos acentos no se muestran correctamente por la decodificación del UNICODE
- //Puede hacer una búsqueda máxima de 1500 tweets por consulta. En promedio Cada 10 segundos
- //Para la ejecución se necesita:
- //.-curl
- //.-php
- //uni2ascii-ascii2uni
- clear && echo -n "Ingresa Palabra a buscar en Twitter.com: " && read parametro && echo "" && for tweet in {1..15};do curl search.twitter.com/search.json?q=$parametro\&rpp=100\&lang=es\&page=$tweet 2> /dev/null | grep text | php -r 'error_reporting(0); $c=""; $a=file_get_contents("php://STDIN"); for($i=100;$i>=1;$i--){$b=explode("text\":\"",$a); $c=explode("\",\"to_user",$b[$i]); echo html_entity_decode($c[0]).((strlen($c[0]) > 2) ? "\n" : "");}';done | nl | ascii2uni -q -a U | php -r 'echo stripslashes(file_get_contents("php://STDIN"));'
Advertisement
Add Comment
Please, Sign In to add comment