Skip to content

Instantly share code, notes, and snippets.

View ghostas33's full-sized avatar

Konstantinos Gialantzis ghostas33

View GitHub Profile
@ghostas33
ghostas33 / foties_tweets.py
Created July 30, 2018 06:28 — forked from Florents-Tselai/foties_tweets.py
Script that searches tweets written in Greek and containing specific hashtags relevant to the recent wildfires in Greece. Also outputs twitter profiles created during the last few days just to tweet those tweets [Info & context here: https://www.facebook.com/f.tselai/posts/1981587568532277 ]
import tweepy
from datetime import datetime
auth = tweepy.OAuthHandler('CONSUMER_KEY', 'CONSUMER_SECRET')
auth.set_access_token('ACCESS_TOKEN', 'ACCESS_SECRET')
api = tweepy.API(auth, wait_on_rate_limit=True)
def parse_ts(ts):