def __init__(self):
        CrawlSpider.__init__(self)
        
        db = MySQLdb.connect(host = Config.mysqlserver, user = Config.mysqlusername, 
                             passwd = Config.mysqlpassword, db = Config.mysqldatabase)
        cursor = db.cursor()
        
        cursor.execute('''
            SELECT *
            FROM foundtypes
        ''')
        
        rows = cursor.fetchall()
        
        for row in rows:
            if len(row) >= 4:
                self.start_urls.append('http://battle.net%s' % row[4])
        cursor.close()
        db.close()
dataset/ETHPy150Open aleximplode/d3scraper/src/d3/d3/spiders/itemspider.py/ItemSpider.__init__/original