Skip to content

Instantly share code, notes, and snippets.

@dannguyen
dannguyen / wget-snapshotpage.md
Last active October 15, 2024 22:18
Use wget to snapshot a page and its necessary visual dependencies

Use wget to mirror a single page and its visible dependencies (images, styles)

Money graphic via State of Florida CFO Vendor Payment Search

Graphic via State of Florida CFO Vendor Payment Search (flair.myfloridacfo.com)

This is a quick command I use to snapshot webpages that have a fun image I want to keep for my own collection of WTFViz. Why not just right-click and save the image? Oftentimes, the webpage in which the image is embedded contains necessary context, such as captions and links to important documentation just incase you forget what exactly that fun graphic was trying to explain.

@adorsk
adorsk / rest_test.py
Created November 6, 2012 18:40
Python posting to Drupal, via REST services
import httplib2
import json
import time
base_url = 'http://localhost/services_test/api/external_tasks'
def t2():
login_data = {
'username': 'tasks',
'password': 'tasks'