I hereby claim:
- I am cecyc on github.
- I am cecyc (https://keybase.io/cecyc) on keybase.
- I have a public key whose fingerprint is 5DF6 FF0C BB24 64C5 2BBB 9FA5 FDD3 8E80 7EFF 118A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| | |
| boop | | |
| | | |
|__________| | |
(\_❀) || | |
(•ㅅ•) || | |
/ づ |
Dockerfile
FROM python:3.4
RUN apt-get update -y
RUN apt-get install -y python-pip build-essential
COPY ./path-to-app /app
WORKDIR /app
RUN pip install --no-cache-dir -r requirements.txt
ENV FLASK_APP=app.py
// Request to YouTube | |
const API_KEY="" | |
const videoUrl = "https://www.youtube.com/watch?v=" | |
let reqUrl = `https://www.googleapis.com/youtube/v3/search?key=API_KEY&part=snippet&q=${query}&maxResults=25` | |
//Get a random int to pick a random video from the results | |
const getRandomInt = () => { | |
let num = Math.random | |
//maxResults are 25 index 0, get a random number between 0 and 24 | |
return Math.floor(num * 24) |
.container {
-ms-overflow-style: none; // IE 10+
overflow: -moz-scrollbars-none; // Firefox
}
.container::-webkit-scrollbar {
display: none; // Safari and Chrome
}
import argparse | |
import boto3 | |
import json | |
import logging | |
import os | |
import pandas | |
from pandas import DataFrame, read_csv | |
import requests | |
import time | |
import random |
parser = argparse.ArgumentParser() | |
parser.add_argument("-c", "--csv", required=True, help="csv to parse ips from") | |
flags = vars(parser.parse_args()) | |
csv_file = flags["csv"] | |
results = [] | |
with open(csv_file, newline='') as f: | |
csvreader = csv.reader(f) |