def getPriceFromLink(link):
    """Expects a string link to a sephora.com product page"""
    soup = soupify(getHtml(link))
    try:
        price = soup.find("span", {"class": "price"}).string
        return price
    except AttributeError:
        return "There is no price"
        return self.link

    def getImageLink(self):
        return self.imageLink

    def getSku(self):
        """Note that this is different than Forever 21's item numbers"""
        return self.sku

    def getJson(self):
        return self.json


uploadProductsUrl = "http://frozen-stream-7233.herokuapp.com//products.json"
forever21NewItemLink = "http://www.forever21.com/Product/Category.aspx?br=f21&category=whatsnew_all&pagesize=100&page=1"
newItemSoup = soupify(getHtml(forever21NewItemLink))
newItems = newItemSoup.find_all("table", style="float: right")
productBaseUrl = "http://www.forever21.com/Product/Product.aspx?BR=f21&Category=whatsnew_all&ProductID="

productList = []
for item in newItems:
    product = Forever21Product(item)
    productList.append(product)

for item in productList[0:]:
    print str(item.getPrice()) + " " + str(item.getBrandAndName())
    print item.getLink()
    print item.getImageLink()
    print item.getSku()
    jsonData = item.getJson()
    print jsonData
    def getLink(self):
        return self.link

    def getImageLink(self):
        return self.imageLink

    def getSku(self):
        '''Note that this is different than Sephora's item numbers'''
        return self.sku

    def getJson(self):
        return self.json

uploadProductsUrl = "http://0.0.0.0:3000/products.json"
sephoraNewItemLink = "http://www.sephora.com/contentStore/mediaContentTemplate.jsp?mediaId=12800020"
newItemSoup = soupify(getHtml(sephoraNewItemLink))
newItems = newItemSoup.find_all("div", {"class": "product-item"})

productList = []
for item in newItems:
    product = SephoraProduct(item)
    productList.append(product)

for item in productList[0:]:
    print str(item.getPrice()) + " " + str(item.getBrandAndName())
    print item.getLink()
    print item.getImageLink()
    print item.getSku()
    jsonData = item.getJson()
    print jsonData
    print "******"
    def getLink(self):
        return self.link

    def getImageLink(self):
        return self.imageLink

    def getSku(self):
        '''Note that this is different than Forever 21's item numbers'''
        return self.sku

    def getJson(self):
        return self.json

uploadProductsUrl = "http://frozen-stream-7233.herokuapp.com//products.json"
aeFemaleNewItemLink = "http://www.ae.com/web/browse/category.jsp?catId=cat90040"
newItemSoup = soupify(getHtml(aeFemaleNewItemLink))
newItems = newItemSoup.find_all('div', {'class': 'sProd'})
productBaseUrl = "http://www.ae.com/web/browse/product.jsp?productId="

productList = []
for item in newItems:
    product = aeFemaleProduct(item)
    productList.append(product)

for item in productList[0:]:
    print str(item.getPrice()) + " " + str(item.getBrandAndName())
    print item.getLink()
    print item.getImageLink()
    print item.getSku()
    jsonData = item.getJson()
    print jsonData