This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests # for grabbing pages | |
from bs4 import BeautifulSoup # for parsing pages | |
import codecs | |
# grab page | |
root = "http://rapgenius.com" | |
path = "/artists/2-chainz" | |
page = requests.get(root+path) | |
# load downloaded page into BS |