Skip to content

Instantly share code, notes, and snippets.

View unexceptable's full-sized avatar

Adrian Turjak unexceptable

  • Wellington, New Zealand
View GitHub Profile
@unexceptable
unexceptable / requirements.txt
Created November 11, 2020 20:45
requirements for wilstar_scraper.py
beautifulsoup4
cloudscraper
markdownify
PyYAML
requests
@unexceptable
unexceptable / wildstar_scraper.py
Last active November 12, 2020 02:29
web scraper for wildstar addons from curseforge, requirements: https://gist.github.com/Adrian-Turjak/631241e503b8cf4c814a3d5ca2ce8d5e
import argparse
import hashlib
import yaml
import os
from bs4 import BeautifulSoup
import cloudscraper
from markdownify import markdownify as md
from requests import exceptions
@unexceptable
unexceptable / inline_panel.js
Created May 30, 2017 07:08
OneToOne Wagtail InlinePanel
// stuff/templates/wagtailadmin/edit_handlers/inline_panel.js
(function() {
var opts = {
formsetPrefix: "id_{{ self.formset.prefix }}",
emptyChildFormPrefix: "{{ self.empty_child.form.prefix }}",
canOrder: {% if can_order %}true{% else %}false{% endif %},
maxForms: {{ self.formset.max_num }}
};
var panel = InlinePanel(opts);