Skip to content

Instantly share code, notes, and snippets.

@tobocop2
Last active January 18, 2016 21:19
Show Gist options
  • Save tobocop2/9c644f3cfc766d80c741 to your computer and use it in GitHub Desktop.
Save tobocop2/9c644f3cfc766d80c741 to your computer and use it in GitHub Desktop.
slammin' it up 4 realz
import json
import requests
from bs4 import BeautifulSoup
result = {}
url = 'http://www.foopee.com/punk/the-list/by-date.0.html'
res = requests.get(url)
soup = BeautifulSoup(res.text)
#gives the first unordered list as its own object
shows = soup.select('ul')[0]
weekly_shows = shows.select('li ul')
#weekly shows by index in shows object
for i, show in enumerate(weekly_shows):
date = shows.select('li a[name]')[i].text
result[date] = [show.text.strip('\n') for show in weekly_shows[i].select('li')]
print(json.dumps(result, indent=4))
{
"Fri Jun 5": [
"924 Gilman Street, Berkeley Toy Guitar, Massenger (Ventura), Bugs (Portland), Nopes, Dialectics a/a $7 8pm *** @",
"Ace of Spades, Sacramento Nico & Vinz, Jason French, Sebastian Mikael a/a $20 7pm **",
"Armadillo Music, 207 F Street, Davis Ravenna Colt a/a free 6pm **",
"Bimbo's 365 Club, S.F. Mustache Harbor 21+ $22 8pm/9pm **",
"Boom Boom Room, 1601 Fillmore, S.F. Herbert Bail Orchestra, Lantz Lazwell &^ The Vibe Tribe 21+ $10 8pm/9pm **",
"Brick and Mortar, S.F. Oxbow 18+ $9/$12 (uner 21 +$5) 8pm/9pm ^ **",
"Caravan, San Jose Dreadren, Something Like Seduction (Phoenix (AZ), Audible Smoke Signal 21+ free 10pm **",
"Catalyst, Santa Cruz Expendables 16+ $22/$27 8pm/8:30pm ***",
"Chapel, S.F. Kelly Stoltz, Asteroid #4, Sarah Bethe Nelson, Kai Clark, Sweet Chariot, Paula Frazer & Tarnation, Shea Roberts, Tom Heyman, Bob Reed, Mothers Of Pearl a/a $15 8pm ** (tribute to Gene Clark)",
"City Winery, Napa Al Steward 21+ $25/$30/$35 8pm **",
"Great American Music Hall, S.F. Puddles Pity Party (2 shows) 6+ $31 6:30pm/7:30pm & 9:30pm/10:30pm ** (seated)",
"Harlow's, Sacramento Brothers Comatose, MerryGold 21+ $15 8pm/9pm **",
"Hemlock, S.F. Still Flyin, Red Pony Clock, Beanpole, Legendary House Cats 21+ $10 7:30pm ** (SF Popfest)",
"Independent, S.F. Trails And Ways 21+ ***",
"LCM, 1629 8th St. at Peralta, Oakland Aja Void, V.E.X., Faith Twain (Portland), Ron Spoons, dj Dead Daisy, dj Julia Mazawa a/a $5 8pm **",
"Phoenix Theater, Petaluma GBaby, JDubb, Willie Joe, Nef The Pharaoh, 99percent, Ocky Ock, RBC Bugzy, Larry June a/a $20 8pm ***",
"Regency Ballroom, S.F. Falling In Reverse, Ghost Town a/a $22.50/$25 6:30pm/7:30pm # *** @",
"Slim's, S.F. Good Riddance, Death By Stereo, Bad Cop/Bad Cop 6+ $18 8pm/9pm *** @",
"Starry Plough, Berkeley Ariel Wang (cd releae), LaDeeDah 21+ **"
],
"Thu Jun 4": [
"Armadillo Music, 207 F Street, Davis Noah Byrd a/a free 8pm **",
"Back Bar Sofa, 418 Sout Market Street, San Jose Wolf Snake Sun, Shallow Vices, Supernaut 21+ 9pm **",
"Bimbo's 365 Club, S.F. Natasha Leggero (comedy - two shows) 21+ $20 6:30pm/7:30pm and 9pm/9:30pm ** (live taping - cocktail attire preferred)",
"Bottom of the Hill, S.F. Palma Violets, Public Access T.V. a/a $15 8:30pm/9pm **",
"Chapel, S.F. Wrekmeister Harmonies, Amber Asylum, Old Earth a/a $15 8pm **",
"City Winery, Napa Dirty Cello, Dirty Symphony 21+ $15/$18/$20 8pm **",
"Fillmore, S.F. Walk Off The Earth, Scott Helman a/a $25 7pm/8pm # ***",
"Great American Music Hall, S.F. Bear & The Ritalin Kids, Human Experience, Camp Grounded Allstars 6+ $19/$24 7pm/8pm ** (Live Dan a tribute Dan Fredinburg)",
"Harlow's, Sacramento Zoso (tribute) 21+ 7pm/8pm **",
"Hemlock, S.F. #poundsign, Yea-Ming And The Rumours, Arts And Leisure, Teenage Chain 21+ $10 8:30pm *** (SF Popfest)",
"Regency Ballroom, S.F. Of Mice & Men, Crown The Empire, Volumes a/a 7:30pm # *** @",
"Slim's, S.F. Sammy J, Finn, Pieter T, Tanelle, Young LB, Da Mainland Band 6+ $21/$26 7:30pm/8pm **"
],
"Wed Jun 3": [
"Bottom of the Hill, S.F. Dustin Kensrue, David Ramirez, Rocketboys a/a $14/$17 8:30pm/9pm ***",
"Brick and Mortar, S.F. Warlocks, TexasBob Juarez (U.K.), Spiral Electric (cd release), dj Jodie Artichoke 18+ $9/$12 (uner 21 +$5) 8pm/9pm ^ **",
"Chapel, S.F. Christopher Owens a/a $20/$22 9pm **",
"City Winery, Napa Mad Noise 21+ $20 8pm **",
"Elbo Room, S.F. UFOmammut (Italy), Usnea (Portland), Hornss, Badr Vogu 21+ $12/$15 7pm ***",
"Hemlock, S.F. Gladiators Eat Fire, Aberrant Phase, Empty Vessel 21+ $6 8:30pm **",
"Independent, S.F. Miami Horror 21+ **",
"Knockout, S.F. Long Knife (Portland), Buffalo Tooth, Reckless, Isotope 21+ $8 8:30pm/9pm ** @",
"Rickshaw Stop, S.f. She's, Union Pacific, Dazeys a/a $10 8pm **",
"Slim's, S.F. Starsailor, Embrace 6+ $25 7pm/8pm ** (was at the Fillmore)",
"Stork Club, Oakland Little Fixtures (Seattle), Rakehell, Wildbone (N.Y.C.), RGBmon, Mary Jane's Affair (Bolivia) 21+ $5 8:30pm **",
"Sweetwater Music Hall, Mill Valley Zoso (tribute) a/a $22/$24 7pm/8pm **"
],
"Tue Jun 2": [
"Amoeba Music, S.F. Miami Horror a/a free 6pm **",
"Bottom of the Hill, S.F. Teenage Bottlerocket, Copyrights, Started-Its a/a $15 8:30pm/9pm *** @",
"Brick and Mortar, S.F. Aquadolls, Mode, Phoebe Bridgers 18+ $10/$14 (uner 21 +$5) 8pm/9pm ^ **",
"Catalyst Atrium, Santa Cruz Ufomammut, Usnea 16+ $10/$13 8:30pm **",
"Catalyst, Santa Cruz Awolnation, Family Of The Year 16+ $25/$28 7pm/8pm ***",
"Chapel, S.F. Patrick Watson, Villagers a/a $20/$22 8:30pm **",
"City Winery, Napa Sun Kings (tribute) 21+ $15/$18/$20 8pm **",
"Great American Music Hall, S.F. Mountain Goats, Blank Range 6+ $30 8pm ** (sold out)",
"Independent, S.F. Kiasmos, Rival Consoles 21+ **",
"Regency Ballroom, S.F. Amaranthe (Gothenburg, Sweden), Prevail, Santa Cruz a/a $20/$22 7pm/8pm # *** @",
"Rickshaw Stop, S.F. L.A. Witch, Cosmonauts, Jjuujjuu a/a **",
"Slim's, S.F. Alkaline Trio, Hide 6+ $28/$32 7pm/8pm *** @ (sold out)"
],
"Sun Jun 7": [
"924 Gilman Street, Berkeley Mischief Brew (recorde release), Ramshackle Glory, Kevin Seconds, Clipcord, Zebu!, Rizzy Ukelele a/a $10 5pm/5:30pm *** @",
"Chapel, S.F. Hugh Cornwell, Kelly Stoltz, Dirty Ghosts a/a $20/$22 8pm ***",
"DNA Lounge, S.F. Ghoul, Phobia, Zero Boys, Lower Class Brats, Potato Pirates a/a $15/$18 6:30pm/7 # *** @",
"DNA Lounge, S.F. En Esch, Ghostfeeder, Flesh Industry, dj Decay, dj Starr a/a $8/$12 8pm/8:30 # **",
"Fillmore, S.F. Weepies, Silent War a/a $32.50 7pm/8pm # **",
"Fox Theater, Oakland D'Angelo And The Vanguard a/a # ** (sold out)",
"Great American Music Hall, S.F. Agalloch, Helen Money 6+ $18/$20 8pm **",
"Harris Center, Folsom Robben Ford a/a $30-$45 7pm/8pm # **",
"Independent, S.F. Unwritten Law 21+ $15/$18 7:30pm/8pm ***",
"Knockout, S.F. Crash & Burn, Faith Twain, Bummer, Fish Breath 21+ $7 4pm ** @",
"Metro, Oakland Crowbar, Battlecross, Lord Dyling a/a 7pm # ** @",
"Peeve's Public House, 1243 Fulton Mall, Fresno Surfer Blood, Alex Calder ?/? **",
"San Mateo County Fair, San Mateo Tony! Toni! Tone! a/a 6:30pm/7:30pm # **",
"Slim's, S.F. Sleeping With Sirens (acoustic), Summer Set, Nick Santino 6+ 7:30pm *** (sold out)"
],
"Sat Jun 6": [
"Ace of Spades, Sacramento Veil Of Maya, Revocation, Oceano, Gift Giver, Entheos a/a $16 6pm ***",
"Bender's, S.F. Serpents Of Dawn, Countress (Reno), Ancient Rites 21+ $5 9pm/10pm **",
"Brick and Mortar, S.F. Kottonmouth Kings, (hed)Pe, Scare Don't Fear, Family Ruin, Marlon Asher, C4 And Nicky Gritts, Chucky Chuck 18+ $25/$30 (uner 21 +$5) 7pm/7:30pm ^ **",
"Catalyst Atrium, Santa Cruz Good Riddance, Death By Stereo, Bad Cop/Bad Cop 16+ $17/$18 8pm/8:30pm *** @",
"Catalyst Atrium, Santa Cruz Freddy Todd, Space Jesus, CloZee 18+ $5/$10 8pm **",
"Cellar Door, 101 W. Main Street, Visalia Surfer Blood, Alex Calder 21+ **",
"Chapel, S.F. Joseph Arthur, Jill Sobule a/a $16/$18 9pm **",
"City Winery, Napa Robben Ford 21+ $30/$35/$45 8pm **",
"El Rio, S.F. Sex Stains (L.A.), Straight Crimes, Garlika Stanx, Phatima Rude, Porcelain, dj Scott Moore, dj Layla & Grace 21+ $7 10pm ** @",
"Golden Bull, Oakland Secrets Of The Sky (record release), Cormorant, Teeph, Lament Cityscape 21+ $8 9pm *** @",
"Great American Music Hall, S.F. Stone Foxes, Trendy Dad, dj Andy Cabic 6+ $20/$23 9pm *** (live recording)",
"Harlow's, Sacramento Spare Parts, Taylor Chicks 21+ 5:30pm/6pm **",
"Harlow's, Sacramento Massive Delicious, Alex Vincent Band 21+ 9:30pm/10pm **",
"Hemlock, S.F. Kinski (Seattle), Heron Oblivion, Mall Walk 21+ $10 9pm **",
"Independent, S.F. Nico & Vinz 21+ **",
"Leo's Music Club, Oakland Tea Leaf Green 21+ 9pm ** (early show)",
"Leo's Music Club, Oakland Saun & Starr (record release) 21+ 11:30pm ** (late show)",
"Mountain Winery, Saratoga KC And The sunshine Band, Jody Watley a/a $100-$50 7:30pm # **",
"Phoenix Theater, Petaluma Reckless And the Brave Mobb, Skank Bank, Ridgway Space Station, Maurze a/a $8 7pm/8pm *** @",
"Regency Ballroom, S.F. Halestorm, Rival Sons, Royal Thunders a/a 7:30pm # *** @",
"Riptide, S.F. True Life Troubadours 21+ free 9pm/9:30pm **",
"San Mateo County Fair, San Mateo Jeffeson Starship a/a 6:30pm/7:30pm # ***",
"Shoreline Amphitheater, Mountain View Modest Mouse, Of Monsters And Men, Panic! At The Disco, Cold War Kids, Atlas Genius, Twenty One Pilots, Death From Above 1979, Best Coast, Kooks, YelaWolf, MisterWives, Sheppard, Orwells, Cathedrals, Meg Myers, Waters, In the Valley Below, G.T.A., Robert Delong, Vicetone, K.Flay, Mystery Skulls, Limousines, Aaron Axelsen, Slaptop, Dyloot, MyKill, Beta Skate, Family Crest, Picture Atlantic, Panic Is Perfect, Eyes On The Shore, Andrew St. James, Dangermaker, Silent Pilot, Curious Quail a/a $70-$38 11am/11am *** @ (Live 105's BFD)",
"Slim's, S.F. Jon Bellion, Rhetorik 6+ $15 8pm/9pm **",
"Thee Parkside, S.F. Bob Log III, Yogurt Brain, Chuck Suckit 21+ $12 9pm **",
"Thunder Valley Casino, 1200 Athens Avenue, Lincoln Peter Frampton 18+ ***",
"UndergroundSF, 424 Haight St., S.F. Secret Circult, Suzanne Kraft, Yr Skull, Kevin Meenan 21+ $10 ($5 b4 10pm) 9pm **",
"Winter's Tavern, Pacifica Flesh Hammers, Cornelius Asperger & The Bi-Curious Unicorns, Eyesores 21+ free 9pm **"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment