Skip to content

Instantly share code, notes, and snippets.

@tsdko
tsdko / fc2-dl.py
Last active August 29, 2015 14:21
#!/usr/bin/env python3
from bs4 import BeautifulSoup
import urllib.request
import os.path
import sys
def get_contents_plain(html):
soup = BeautifulSoup(html)
#!/usr/bin/env python3
from os.path import basename
import argparse
import json
import os
import sys
import urllib.parse
import urllib.request
if sys.stdout.isatty():
@tsdko
tsdko / utoxlog.py
Last active August 29, 2015 14:05
uTox log converter
#!/usr/bin/env python3
from datetime import datetime
from os.path import basename
import struct
import sys
format_toxic = False
datestamp = "%Y/%m/%d"
timestamp = "%X"