Skip to content

Instantly share code, notes, and snippets.

View APie357's full-sized avatar

Andrew APie357

View GitHub Profile
@APie357
APie357 / server.py
Last active April 16, 2021 16:22 — forked from FlyTechVideos/server.py
Simple web server which logs accesses and data [https://www.youtube.com/watch?v=TB3OEG0bKwc]
#!/usr/bin/env python3
from flask import Flask, request, send_from_directory
from datetime import datetime
from user_agents import parse
app = Flask(__name__)
def get_ip(ip):