Skip to content

Instantly share code, notes, and snippets.

Giuseppe Sollazzo puntofisso

Block or report user

Report or block puntofisso

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
puntofisso / scrape_tweets.rb
Created Mar 26, 2012 — forked from stefl/scrape_tweets.rb
Download all tweets from the twitter search API for a given search term (limited to their maximum of 1500)
View scrape_tweets.rb
#! /usr/bin/env ruby
require "fileutils"
search_term = ARGV[0]
if search_term
time =
directory_path = File.dirname(__FILE__) + "/tweets/" + search_term + "_" + time.to_i.to_s
directory =
(1..15).each do |i|
`curl "{search_term}&rpp=100&page=#{i}&include_entities=true&result_type=mixed" > #{directory.path}/#{i}.json`
You can’t perform that action at this time.