Skip to content

Instantly share code, notes, and snippets.

@daviesjamie
daviesjamie / package.json
Created March 8, 2022 13:38
Expand user agent strings from a CSV
{
"dependencies": {
"fast-csv": "^4.3.6",
"ua-parser-js": "^1.0.2"
}
}

Keybase proof

I hereby claim:

  • I am daviesjamie on github.
  • I am daviesjamie (https://keybase.io/daviesjamie) on keybase.
  • I have a public key whose fingerprint is 6F41 42F2 4409 E039 FE46 5DAC 3B6A 21E0 E89D F885

To claim this, I am signing this object:

@daviesjamie
daviesjamie / interfacelift-scraper.py
Created November 21, 2014 22:49
Easily scrape wallpapers from Interface Lift
import os, re, urllib2
# Where to download the wallpapers from
base_url = 'https://interfacelift.com'
listing_url = base_url + '/wallpaper/downloads/date/wide_16:9/2880x1620/'
# Where to save the wallpapers
output_directory = 'wallpapers'
# How many wallpapers to download (0 = all)