This file contains hidden or 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
import numpy as np | |
import cv2 | |
import os | |
def main(): | |
path_dir = "/media/sf_videos" # path to the videos | |
for fname in os.listdir(path_dir): | |
if fname.lower().endswith(".mkv"): # used extension. I look for ".mkv" files | |
average_colors_list = list() # list that will contain all the average colors. | |
print("Reading file [{}]".format(fname)) |
This file contains hidden or 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
""" | |
@author jliebana | |
Este script obtiene los tweets de un usuario haciendo paginación, ya que los límites de la API de Twitter | |
no permiten obtener más de 200 mensajes en la misma petición. | |
""" | |
import twitter #https://github.com/bear/python-twitter/ | |
#Rellenar con los datos de la API de Twitter | |
consumer_key = '' | |
consumer_secret = '' |