Skip to content

Instantly share code, notes, and snippets.

@tetrillard
tetrillard / pearltrees_html_to_wget.py
Last active September 13, 2021 21:23
PearlTree dirty export from HTML (when it's too big to export by zip)
#!/usr/bin/python3
# pearltress export HTML sauvegarde
import re
import random
from urllib.parse import unquote
RE_FOLDER = re.compile('<H3 FOLDED ADD_DATE="[^"]*">([^<]*)<\/H3>')
RE_LINK = re.compile('HREF="([^"]*)"')
RE_NAME = re.compile('filename="([^"]*)"')
@tetrillard
tetrillard / rss_hackerone_hacktivity.py
Last active January 11, 2024 19:14
HackerOne Hacktivity to RSS feed
#!/usr/bin/env python3
import sys
import requests
import urllib3
import json
import re
from types import SimpleNamespace as Namespace
from feedgen.feed import FeedGenerator
output = ''
@tetrillard
tetrillard / smsbackuprestore-extractor.py
Created November 24, 2014 22:57
SMS Backup & Restore : Extract images and videos from a backup file
#!/usr/bin/env python
# -*- coding: utf8 -*-
# SMSBackupRestore extractor
#
# smsbackuprestore-extractor.py
# 24/11/2014
#
# This script will extract all images and videos retrieved
# from a xml backup of the Android application "SMS Backup & Restore".