php - Twitter User Time Line Feed using date parameter -
i working on sentiment analysis need twitter feed. have implemented php code json feed , parse wanted. problem not find way json feed per date specified.
$query = array( 'screen_name' => 'twitterapi', 'count' => '5' );
using above syntax have specify number of tweets requirement feed specific date. possible pass date parameter instead of count. using $path = '/1.1/statuses/user_timeline.json';
i have implemented mechanism manually filter date have provide large count older dates unnecessarily slows down code.
there 2 ways can this.
firstly, read documentation api call you're making. can't pass date - can request 200 tweets and, if isn't enough, page through 3,200 of recent tweets.
secondly, read documentation searching twitter, can use until
parameter search older tweets. twitter's search api goes ~7 days. say:
please note twitter’s search service and, extension, search api not meant exhaustive source of tweets. not tweets indexed or made available via search interface.
Comments
Post a Comment