Domanda

sto usando il Twitter URL: http://search.twitter.com /search.json?q=%23test al fine di restituire un elenco JSON di tweet con il tag hash #test.

Si ritorna 15 risultati e dice la pagina 1. Come si caricare la pagina successiva del 15 tweets?

* Ho provato ad aggiungere & page = 2 per l'URL di ricerca, ma senza fortuna.

È stato utile?

Soluzione

The JSON response of the URI you posted includes the query parameters to use to get the next page. It's in the "next_page" element. Currently, the value is "?page=2&max_id=80076124637499392&q=%23test". So, the complete URI for the second page is http://search.twitter.com/search.json?page=2&max_id=80076124637499392&q=%23test

The Twitter search API documentation unfortunately does not describe how to use this parameter, though it is briefly described in the Twitter API Wiki at http://apiwiki.twitter.com/w/page/22554664/Return-Values.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top