Skip to content

Instantly share code, notes, and snippets.

View andrewward's full-sized avatar
🤠
Yeeehawww

Andrew Ward andrewward

🤠
Yeeehawww
View GitHub Profile
@andrewward
andrewward / build_playlist.py
Created December 6, 2018 01:19
Script to build a spotify playlist of NPR's best songs of 2018, because why not
from bs4 import BeautifulSoup as bs
import requests
import spotipy
import spotipy.util as util
import sys
urls = [
'https://www.npr.org/2018/12/05/671206143/the-100-best-songs-of-2018-page-1',
'https://www.npr.org/2018/12/05/671206272/the-100-best-songs-of-2018-page-2',
'https://www.npr.org/2018/12/05/671206277/the-100-best-songs-of-2018-page-3',
### Keybase proof
I hereby claim:
* I am andrewward on github.
* I am award1066 (https://keybase.io/award1066) on keybase.
* I have a public key ASD66i3AHMN1GqDVJNFl3xowX6xEnVMDrjfqL7OAv7_8kwo
To claim this, I am signing this object:
@andrewward
andrewward / scale.py
Created June 19, 2017 16:45
lambda scaler
import operator
import os
import time
import boto3
import json
from common import *
dynamodb = boto3.client('dynamodb')