This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Twitter Chat Archive: | |
Get hashtag results from Twitter Search API (in JSON) for a weekly chat. | |
API takes date range via values: 'since' thru 'until' (YYYY-MM-DD). | |
API limits: 1 page per request, 100 results per page, 1500 total results: <7 days old. | |
Script below: Repeats page requests until no results found w/in date-range. | |
Then gathers only those results w/in specified timestamp range. | |
Then sort results from oldest to newest. |