Skip to content

Instantly share code, notes, and snippets.

View Ultrabenosaurus's full-sized avatar

Ultrabenosaurus

  • UK
  • 10:14 (UTC +01:00)
View GitHub Profile
@rauchg
rauchg / README.md
Last active May 16, 2026 01:17
require-from-twitter
@AnalogJ
AnalogJ / download_opds.py
Created August 29, 2017 01:54
download all books in OPDS catalog.
import urllib2
import os
import urllib, urlparse
import xml.etree.cElementTree as et
e = et.ElementTree(file=urllib2.urlopen('https://standardebooks.org/opds/all')).getroot()
print(e)
print("parsing")
for atype in e.iter('{http://www.w3.org/2005/Atom}link'):
@Ultrabenosaurus
Ultrabenosaurus / mp4-to-gif.sh
Last active October 4, 2021 13:42
Simple bash script to convert MP4 videos to GIF
#!/bin/bash
#############################################
#
# mp4-to-gif
#
# Convert MP4 videos to GIF images
# Requires ffmpeg and imagemagick
#
# -g and --gifsicle options create a second optimised GIF for your consideration
@robert-clayton
robert-clayton / standard_ebooks_opds_downloader.py
Last active September 2, 2019 18:15 — forked from Ultrabenosaurus/standard_ebooks_opds_downloader.py
Download all ebooks from the Standard eBooks OPDS catalogue, organised into subfolders by author and book title.
####
#
# Download all of the Standard eBooks catalogue from their OPDS feed.
#
# https://standardebooks.org/
#
# Modified to download all files for each book except the SVG cover and to
# organise the files in subfolders by Author > Book Title.
# The original script downloads only the EPUB file for each book into the
# working directory with no subfolders.