Skip to content

Instantly share code, notes, and snippets.

View en0l1c's full-sized avatar

enolic en0l1c

  • University of Piraeus, Department of Informatics
  • Athens, Greece
View GitHub Profile
@en0l1c
en0l1c / 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):