Skip to content

Instantly share code, notes, and snippets.

@ayancey
ayancey / meh.py
Last active Jul 15, 2016
For Joe
View meh.py
import requests
from bs4 import BeautifulSoup
import re
import json
import clipboard
first_level_categories = {74: {}, 75: {}, 134: {}, 79: {}, 53: {}, 86: {}, 110: {}, 76: {}, 77: {}}
# Get 2nd level categories
for category in first_level_categories:
View blah.py
# actual_data = json.loads(data)
# for c in actual_data:
# if not actual_data[c]:
# print c + '--'
# r = requests.post('http://www.beertutor.com/beers/index.php?t=sub_pages&cat=' + str(c), data = {'num_results': '5000'})
View helpers.py
import os
import time
import datetime
import pickle
import webbrowser
import codecs
import subprocess
import sys
# Quick little function that opens the default web browser and displays the HTML of your choice
View gist:0d001a2d60e67c82d300
from mutagen.mp4 import MP4
audio = MP4("Did You.m4a")
print "Artist: " + audio.tags['\xa9ART'][0]
audio.tags['\xa9ART'] = "Someone Else"
audio.save()
audio = MP4("Did You.m4a")