Skip to content

Instantly share code, notes, and snippets.

View sebdelsol's full-sized avatar

sebdelsol

  • Montpellier, France
  • 02:31 (UTC +01:00)
View GitHub Profile
@sebdelsol
sebdelsol / mitmproxy.py
Last active October 8, 2024 16:43
start mitmproxy in background programmatically
import asyncio
import threading
from typing import Any, Callable, Self
from mitmproxy import http
from mitmproxy.addons import default_addons, script
from mitmproxy.master import Master
from mitmproxy.options import Options
@sebdelsol
sebdelsol / sfvip_user_proxy.py
Last active August 20, 2023 10:30
Set/remove a global user proxy for all SFVIP users
# Use Python 3.11 with no dependencies
# set a global user proxy:
# python -m sfvip_user_proxy http://127.0.0.1:8888
# remove the global user proxy:
# python -m sfvip_puser_proxy
import argparse
import json
@sebdelsol
sebdelsol / sfvip_proxy.py
Last active May 3, 2023 13:30
Add an all category in vod and series
# requirements:
# Python >= 3.10
# pip install proxy.py pywin32 requests
# create a shortcut :
# python sfvip_proxy.py --shorcut
# use it !
import argparse
import itertools
import json
@sebdelsol
sebdelsol / sfvip_proxy.py
Last active April 30, 2023 14:02
proxy to search among movies and series in sfvip player
# requirements:
# Python >= 3.10
# pip install proxy.py psgtray psutil pysimplegui pywin32 requests
# use it:
# python sfvip_proxy.py [--port PORT]
# or create the launcher:
# python sfvip_proxy.py --launcher [--port PORT]
# and Launch the proxy with sfvip_proxy.vbs
#!/usr/bin/env python3
from __future__ import annotations
import subprocess
"""
888 888 d8b
888 888 Y8P
888 888