Skip to content

Instantly share code, notes, and snippets.

import urllib, sys
from bs4 import BeautifulSoup
page = urllib.urlopen("https://ualbanydining.com/dining-choices/resident/indian.html")
soup = BeautifulSoup(page.read())
links = soup.select("#accordion_4736 ul li a")
if not links:
print "Couldn't find link.."
@El-Coder
El-Coder / 0_reuse_code.js
Last active August 29, 2015 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console