bluegill = {'id':'Bluegill','weight':'.5-1.5 lb.','length':'6-10 in.','comname':'bluegill,sunfish','sciname':'Lepomis macrochirus','depth':'1-2 ft.','lifespan':'5-6 yrs',
'description':'The bluegill (Lepomis macrochirus) is a species of freshwater fish sometimes referred to as bream, brim, or copper nose. It is a member of the sunfish family Centrarchidae of the order Perciformes. It is native to North America and lives in streams, rivers, lakes, and ponds. It is commonly found east of the Rockies. It usually hides around, and inside, old tree stumps and other underwater structures. It can live in either deep or very shallow water, and will often move back and forth, depending on the time of day or season. Bluegills also like to find shelter among water plants and in the shade of trees along banks.Bluegills can grow up to 12 inches (30 cm) long and about  4 1⁄2 pounds. They have very distinctive coloring, with deep blue and purple on the face and gill cover, dark olive-colored bands down the side, and a fiery orange to yellow belly. The fish are omnivores and will eat anything they can fit in their mouth. They mostly feed on small aquatic insects.',
'difficulty':'Easy','shoreboat':'shore','school':'10-20 fish','time':'none','rarity':'common','hook':'#8-#12','aggressiveness':'Medium','limit':'None'
,'environment':'near shores','pic':'.jpg' }
crappie = {'id':'crappie','weight':'1-1.5 lb.','length':'5-12 in.','comname':'smallie, red eye, green trout, brown bass, bronzeback, bareback bass','sciname':'Pomoxis annularis','depth':'1-5 ft.','lifespan':'4-6 yrs',
'description':'Both species of crappie as adults feed predominantly on smaller species, including the young of their own predators (which include the northern pike, muskellunge, and walleye). They have diverse diets, however, including zooplankton, insects, and crustaceans.By day, crappie tend to be less active and will concentrate around weed beds or submerged objects, such as logs and boulders. They feed during dawn and dusk, by moving into open water or approaching the shore.',
'difficulty':'Easy','shoreboat':'boat','school':'small schools, alline','time':'none','rarity':'common','hook':'#8-#12','aggressiveness':'Medium','limit':'None'
,'environment':'near shores','pic':'.jpg' }
smallmouth = {'weight':'2-4 lbs.','length': '','comname':'smallmouth bass','sciname':'Micropterus dolomieu','depth':'','lifespan':'10-12 yrs.','description':'',
'difficulty':'','shoreboat':'','school':'','time':'','rarity':'','hook':'','aggressiveness':'','takehome':''
,'environment':'','pic':'.jpg' }
rockbass = {'weight':'','length': '','comname':'','sciname':'','depth':'','lifespan':'','description':'',
'difficulty':'','shoreboat':'','school':'','time':'','rarity':'','hook':'','aggressiveness':'','takehome':''
,'environment':'','pic':'.jpg' }
stripedbass = {'weight':'','length': '','comname':'','sciname':'','depth':'','lifespan':'','description':'',
'difficulty':'','shoreboat':'','school':'','time':'','rarity':'','hook':'','aggressiveness':'','takehome':''
,'environment':'','pic':'.jpg' }
array = [bluegill,crappie]

for fish in array:
    name = '/Users/AndrewsMacBookAir/Desktop/AlumCreekFishing/fish/' + str(fish['id']) + '.html'
    file = open(name,'w',encoding='utf-8')
    file.write(
    """ <html><head><link rel='stylesheet' href='/Users/AndrewsMacBookAir/Desktop/AlumCreekFishing/css/bootstrap.css'>
      <script src='https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
      <script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'></script>
      <meta charset='utf-8'>
      <title> """+ str(fish['id'])+ """ </title>
    </head>

    <body>

      <br>
      <div class='container'>
        <div class='row'>
          <div class='col-lg-6 col-md-6 col-sm-6 col-xs-12'>
            <h3><i>"""+ str(fish['sciname']) +"""</i></h3>
            <h4 style=font-family:ariel>common name(s): """+ str(fish['comname'])+ """</h4>
            <img src='pics/"""+ str(fish['id']) + str(fish['pic']) +"""'class='img-responsive'>
          </div>
          <h3><i>Information</i></h3>
          <br>
          <div class='col-lg-6 col-md-6 col-sm-6 col-xs-12'>
            <ul class='list-group'>
              <li class='list-group-item'>Avg. Length <span class='badge'>"""+ str(fish['length']) +"""</span></li>
              <li class='list-group-item'>Avg. Weight <span class='badge'>"""+ str(fish['weight']) +"""</span></li>
              <li class='list-group-item'>Avg. Depth <span class='badge'>"""+str(fish['depth']) +"""</span></li>
              <li class='list-group-item'>Lifespan <span class='badge'>"""+ str(fish['lifespan']) +"""</span></li>

            </ul>

            </div>
          </div>
        <div class='row'>
          <div class='col-lg-9 col-md-9 col-sm-12 col-xs-12'>
            <p class='text-muted' style=font-size:20px>&nbsp;&nbsp;&nbsp;""" +str(fish['description'])+ """</p>
          </div>
          <div class='col-lg-3 col-md-3 col-sm-0 col-xs-0'>
            <img src='http://i.imgur.com/l4IKb7r.jpg' class='img-responsive'>
          </div>
        </div>
        <div class='row'>
          <div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
            <button data-toggle='collapse' data-target='#demo'>Fishing Info</button>
            <div id='demo' class='collapse'>
              <ul class='list-group'>
                <li class='list-group-item'>Difficulty to catch <span class='badge'>"""+ str(fish['difficulty']) +"""</span></li>
                <li class='list-group-item'>Shore vs Boat <span class='badge'>"""+ str(fish['shoreboat'])+ """</span></li>
                <li class='list-group-item'>School <span class='badge'>"""+ str(fish['school'])+ """</span></li>
                <li class='list-group-item'>Best time of day <span class='badge'>""" +str(fish['time'])+ """</span></li>
                <li class='list-group-item'>Rarity<span class='badge'>"""+ str(fish['rarity'])+ """</span></li>
                <li class='list-group-item'>Hook size <span class='badge'>"""+ str(fish['hook'])+ """</span></li>
                <li class='list-group-item'>Aggressiveness<span class='badge'>"""+ str(fish['aggressiveness'])+ """+</span></li>
                <li class='list-group-item'>legal take-home size <span class='badge'>"""+ fish['limit']+ """</span></li>
                <li class='list-group-item'>Water Environment <span class='badge'>"""+ fish['environment']+ """</span></li>
      </ul>
          </div>
          </div>
        </div>

    </div>

    </body>

    </html>
    """
    );
    file.close()
