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
#!/usr/bin/env python | |
# Taken from http://zulko.github.io/blog/2015/02/01/extracting-perfectly-looping-gifs-from-videos-with-python-and-moviepy/ | |
import os | |
import sys | |
import moviepy.editor as mp | |
from moviepy.video.tools.cuts import FramesMatches | |
if len(sys.argv) != 2: |
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
''' | |
Rewrite with Twittcher ;) | |
Result (every 20 seconds): | |
>>> Most common words: [('ferguson', 41), ('http', 28), ('protests', 9), | |
('missouri', 9), ('leave', 8), ('continue', 8),...] | |
''' | |
import re | |
from collections import Counter | |
from twittcher import SearchWatcher |