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
from db_model.models.content import RawArticle | |
from db_model.models.source import Source | |
from engine.celery import app, BaseTask | |
from engine.resources.vimeo_service import fetch_user_videos | |
from engine.resources.youtube_service import get_youtube_uploads | |
from time import strptime | |
from engine.utils.lock import FetchLock | |
import requests | |
'''Imports: | |
Mi primera observación sería ordenar los imports, conservando el orden |
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
#!/bin/bash | |
# Based on virtualenv-auto-activate.sh | |
# Source: https://gist.github.com/codysoyland/2198913 | |
# | |
# Installation: | |
# Add this line to your .bashrc or .bash-profile: | |
# | |
# source /path/to/virtualenv-auto-activate.sh | |
# | |
# As a difference with the original, this script will look |
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
from flask import Flask, render_template, jsonify, request | |
from threading import Timer, Thread | |
from time import sleep | |
app = Flask(__name__) | |
@app.route("/api/<method>") | |
def api(method): | |
data = { |