The Idea

I started looking through governmental websites because those information are more open to webscraping and therefore would not run into as much legal issues. I decided to work with the Massachusetts legislature website because although the information are public, not a lot of people will go through and read them. By tweeting them out, people can have easier access and also be aware just by reading the title of the tweet.

In [35]:
# Load the module for visiting and reading websites.
import urllib.request
# Load the module for running regular expressions (regex).
import re 
# Load the module for date and time stuff.
import datetime
# Define the variable now as equal to the current date and time.
now = datetime.datetime.now()

Testing the Idea

My original idea was to tweet out the reports that are part of the Bills. I worked on understanding the page source and found a way to isolate the title and the url. Unfortunately, i went back to the same page, and the codes changed. I also spoke to Professor, and he stated that it would be also be harder to tweet out the new updates beacuse the bot right now would have to rescan the whole document and due to the set up of the page, the new tweet might not actually be the most updated one, just that it is different from the previous tweet. So i need to find another page source.

The New Idea

I went to the front page of the website and saw the "Most Popular" tables. In order to check that the content changes and the code stayed the same, I used a website call Wayback Machine. I checked the same page in 2016 to see if the list changed and look at the page source. They seem fine to continue to the next step.

In [36]:
# Set the URLs you want to scrape.
url_1 = "https://malegislature.gov/"
In [37]:
# Load the module for accessing Google Sheets.
import gspread
# Load the module needed for securely communicating with Google Sheets.
from oauth2client.service_account import ServiceAccountCredentials
# The scope for your access credentials
scope = ['https://spreadsheets.google.com/feeds']

# Your spreadsheet's ID
document_key = "1T4Eivm8C4BJ_MIo4PGFjkC2dj6fK9oRowapDouhhH6U"
# Your Google project's .json key
credentials = ServiceAccountCredentials.from_json_keyfile_name('../../../../../Sheetsbot-d365f0555548.json', scope)

# Use your credentials to authorize yourself.
gc = gspread.authorize(credentials)
# Open up the Sheet with the defined ID.
wks = gc.open_by_key(document_key)

#########################################
#
#  NOTE: The name of the sheet you are 
#  trying to access should be in the 
#  parenthetical below (e.g., Data). By
#  Default this is probably "Sheet1".
#
#########################################
worksheet = wks.worksheet("Sheet1")

# Count the number of rows in your Sheet &
# resize to remove blank rows.
worksheet.resize(worksheet.row_count)
In [38]:
# download spreadsheet
import csv
csvfile = "output.csv"
list_of_lists = worksheet.get_all_values()
with open(csvfile, "w") as output:
    writer = csv.writer(output, lineterminator='\n')
    writer.writerows(list_of_lists)

import pandas as pd
output = pd.read_csv(csvfile)
output[:3]
Out[38]:
Timestamp URL 1 Bill Code Bill Title
0 0 0 0 0
1 2017-10-25 11:11:41 /Bills/190/H1449 H.1449 An Act relative to Massachusetts certified eme...
In [39]:
# Import the relevant Twitter libraries so you can use Twitter.
import twitter
from twitter import TwitterError

with open('../../../../../key.txt', 'r') as myfile:
    key=myfile.read()
    
with open('../../../../../secret.txt', 'r') as myfile:
    secret=myfile.read()
    
with open('../../../../../token_key.txt', 'r') as myfile:
    token_key=myfile.read()

with open('../../../../../token_secret.txt', 'r') as myfile:
    token_secret=myfile.read()

# Set you Twitter API credentials.
api = twitter.Api(consumer_key=key,
                  consumer_secret=secret,
                  access_token_key=token_key,
                  access_token_secret=token_secret)

Regex

First I was able to isolate the code of the bill/general law and the link. But because the title name is a few lines of code away, it would be easier to use url 2 and isolate the title name seperately. Therefore, I have two of the same url but the regular expression are different. Then i combine them and created a tweet that will have the chapter of the general law or the bill no. of the bill, then the name of that bill and then the url that links to that bill. If a new bill or general law was added to the most popular list, the bot should be able to recognize the change and tweet out the newest addition.

Regex second attempt

While combining the code, I realize I am unable to grab the Bills but only the general law because the code shows up before the bills. I once again used the Wayback Machine to check if the general law or the bills changes more oftern. It turns out that the bills does and therefore, I decided to only tweet out the most popular bills. I also needed to isolate the title name for the bills instead of the general law. In order to do that I needed to continue my first regular expression because of the unique code   which could isolae the title for the bills and not the general law. Therefore, I can use one url instead of two and have three outputs from one url. I then deleted the second url and the combination section.

Read the contents of your first webpage

When you run the next cell, your program will visit the first URL you defined above. It will then print out that page's HTML.

In [40]:
p_1 = urllib.request.build_opener(urllib.request.HTTPCookieProcessor).open(url_1).read()
print(p_1)
b'<!DOCTYPE html>\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n    <meta charset="utf-8" />\r\n    <meta http-equiv="X-UA-Compatible" content="IE=edge" />\r\n    <meta name="viewport" content="width=device-width, initial-scale=1" />\r\n    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->\r\n    <meta name="description" content="" />\r\n    <meta name="author" content="" />\r\n    \r\n    <link rel="apple-touch-icon" sizes="180x180" href="/Icons/apple-touch-icon.png" />\r\n    <link rel="apple-touch-icon" sizes="120x120" href="/Icons/apple-touch-icon-120x120.png" />\r\n    <link rel="apple-touch-icon" sizes="152x152" href="/Icons/apple-touch-icon-152x152.png" />\r\n    <link rel="icon" type="image/png" href="/Icons/favicon-32x32.png" sizes="32x32" />\r\n    <link rel="icon" type="image/png" href="/Icons/favicon-16x16.png" sizes="16x16" />\r\n    <link rel="manifest" href="/Icons/manifest.json" />\r\n    <link rel="mask-icon" href="/Icons/safari-pinned-tab.svg" color="#0168c9" />\r\n    <link rel="shortcut icon" href="/Icons/favicon.ico" />\r\n    <meta name="msapplication-config" content="/Icons/browserconfig.xml" />\r\n    <meta name="theme-color" content="#ffffff" />\r\n\r\n    <title>The 190th General Court of the Commonwealth of Massachusetts</title>\r\n\r\n    <!-- Core CSS -->\r\n    <link href="/bundles/css/core?v=Fko5tNc8NwkSfu6dTgQMU6PmVVF5KUoj9yxTLX1gC0Q1" rel="stylesheet"/>\r\n\r\n\r\n    <!-- Fonts -->\r\n    <link href="//fonts.googleapis.com/css?family=Raleway:400,300,500,600,700" rel="stylesheet" type="text/css" />\r\n    <link href="//fonts.googleapis.com/css?family=Cinzel:400,700" rel="stylesheet" type="text/css" />\r\n    <link href="/Content/font-awesome.min.css" rel="stylesheet"/>\r\n\r\n\r\n    \r\n\r\n    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->\r\n    <!--[if lt IE 9]>\r\n        <script src="//oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>\r\n        <script src="//oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>\r\n    <![endif]-->\r\n\r\n        <script>\r\n            (function(i, s, o, g, r, a, m) {\r\n                i[\'GoogleAnalyticsObject\'] = r;\r\n                i[r] = i[r] || function() {\r\n                    (i[r].q = i[r].q || []).push(arguments);\r\n                }, i[r].l = 1 * new Date();\r\n                a = s.createElement(o),\r\n                    m = s.getElementsByTagName(o)[0];\r\n                a.async = 1;\r\n                a.src = g;\r\n                m.parentNode.insertBefore(a, m);\r\n            })(window, document, \'script\', \'https://www.google-analytics.com/analytics.js\', \'ga\');\r\n\r\n            ga(\'create\', \'UA-44972849-4\', \'auto\');\r\n            ga(\'send\', \'pageview\');\r\n\r\n        </script>\r\n    <script src="/bundles/jquery?v=-Z_WGCCz27f7K1fl9qko0TVhwr6z8WRHt_1vrPjbJyU1"></script>\r\n\r\n</head>\r\n\r\n\r\n<body class="home">\r\n\r\n<div id="alertContainer">\r\n    <!-- Alert Banner -->\r\n\r\n</div>\r\n\r\n<!-- Skip to Content Link -->\r\n<a href="#mainContent" class="sr-only sr-only-focusable">Skip to Content</a>\r\n<div id="background">\r\n    <!--Header-->\r\n    <header>\r\n    <div class="container">\r\n        <a class="masthead" href="/">\r\n            <span class="headNumber">The 190th General Court of the </span>\r\n            <span class="headCommonwealth">Commonwealth of <span class="headMass">Massachusetts</span></span>\r\n        </a>\r\n        <div class="utilityLinks hidden-xs dropdown navbar-right">\r\n\r\n                    <button id="utilMyLegBtn" class="utilityButton dropdown-toggle" aria-haspopup="true" aria-controls="loginFlyout" data-toggle="dropdown">\r\n                        <span class="fa-stack fa-lg">\r\n                            <span class="fa fa-user fa-stack-2x"></span>\r\n                        </span>\r\n                        <span class="mlTitle">MyLegislature <span class="fa fa-caret-down"></span></span>\r\n                    </button>\r\n                    <div id="loginFlyout" class="dropdown-menu dropdownLogin" aria-live="assertive">\r\n                        <h2 class="text-center loginTitle">MyLegislature</h2>\r\n<form action="/Account/Login?isModal=False" class="form-horizontal clearfix" data-ajax="true" data-ajax-begin="inProgress" data-ajax-complete="loginFlyoutFormOnComplete" data-ajax-method="POST" id="loginFlyoutForm" method="post" role="form"><input name="__RequestVerificationToken" type="hidden" value="Bdvnbqwx3D7KRvFZ0PCZs0xqI__BiFn9IMeeAFzIanX5L9vD81BLZCMrUvRFEabGiXcHwwX_bOuXB1q7IiUpjFholU41" />\r\n<legend class="text-center">Sign in with MyLegislature Account</legend>\r\n<div class="form-group">\r\n    <label class="col-sm-3 control-label" for="Email">Email</label>\r\n    <div class="col-sm-9">\r\n        <input class="form-control" data-val="true" data-val-email="Invalid email address." data-val-required="Email address is required." id="Email" name="Email" type="text" value="" />\r\n        <span class="field-validation-valid help-block" data-valmsg-for="Email" data-valmsg-replace="true"></span>\r\n    </div>\r\n</div>\r\n<div class="form-group passwordField">\r\n    <label class="col-sm-3 control-label" for="Password">Password</label>\r\n    <div class="col-sm-9 clearfix">\r\n        <input class="form-control" data-val="true" data-val-required="Password required." id="Password" name="Password" type="password" />\r\n        <span class="field-validation-valid help-block" data-valmsg-for="Password" data-valmsg-replace="true"></span>\r\n        \r\n    </div>\r\n</div>\r\n<div class="col-xs-12 text-center">\r\n    <div class="clearfix">\r\n        <a class="forgotPassword" aria-haspopup="true" data-toggle="modal" data-target="#forgotPasswordModal">Forgot Password?</a>\r\n    </div>\r\n    <input type="submit" value="Sign in" class="btn btn-default btn-lg fnStart"/>\r\n    <input type="submit" value="Signing In..." class="btn btn-default btn-lg fnEnd" style="display: none" />\r\n</div>\r\n</form>\r\n<div class="form-group text-center">\r\n    <button type="button" onclick="window.location=\'/Account/ExternalLogin?provider=Facebook\';" class="btn btn-facebook btn-md oauthButton"><span class="fa fa-facebook-official fa-fw"></span> Sign in with Facebook</button>\r\n    <button type="button" onclick="window.location=\'/Account/ExternalLogin?provider=Google\';" class="btn btn-google btn-md oauthButton"><span class="fa fa-google-plus fa-fw"></span> Sign in with Google</button>\r\n</div>\r\n<div class="row">\r\n    <div class="col-xs-12 loginFooterWrapper">\r\n        <p class="loginFooter clearfix">\r\n          <a class="pull-left" href="#" data-toggle="modal" data-target="#registrationModal">Not Registered?</a>\r\n          <a class="pull-right" href="/MyLegislature/About">Learn More Here! &raquo;</a>\r\n        </p>\r\n    </div>\r\n</div>\r\n\r\n                    </div>\r\n        </div>\r\n        <!-- /.utilityLinks -->\r\n    </div>\r\n    <!-- /.container -->\r\n</header>\r\n\r\n    <!-- NAVIGATION -->\r\n    <nav class="navbar yamm" role="navigation">\r\n    <div class="container">\r\n        <div class="navbar-header">\r\n            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">Menu<span class="sr-only">Toggle navigation</span></button>\r\n        </div>\r\n        <div id="navbar" class="collapse navbar-collapse">\r\n            <ul class="nav navbar-nav">\r\n                <li class="visible-xs"><a href="/">Home</a></li>\r\n                <li class="visible-xs"><a role="button" href="#" data-toggle="modal" data-target="#mobileSearch" aria-haspopup="true">Search</a></li>\r\n                    <li class="visible-xs">\r\n                        <a data-toggle="modal" data-target="#loginModal">\r\n                            <span class="fa fa-user"></span> \r\n                            MyLegislature\r\n                        </a>\r\n                    </li>\r\n                \r\n                <li class="dropdown yamm-fw">\r\n        <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true">Bills &amp; Laws</a>\r\n        <ul class="dropdown-menu">\r\n            <li>\r\n                <div class="yamm-content">\r\n                    <div class="row">\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/Bills">Bills</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li>\r\n    <a href="/Bills/Search">\r\n        All Bills\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/Bills/RecentBills">\r\n        Recent &amp; Popular Bills\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/ClerksOffice/Senate/Deadlines">\r\n        Senate Deadlines\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/ClerksOffice/House/Deadlines">\r\n        House Deadlines\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/Bills/CityTown">\r\n        Browse Bills by City/Town\r\n            </a>\r\n</li>\r\n<li class="form-group">\r\n    <label for="billsSearch">Search Bills:</label>\r\n    <form action="/Bills/Search" method="get">    <h2 class="sr-only">Search</h2>\r\n    <label class="sr-only" for="billsSearch">Search Bills</label>\r\n    <div class="typeahead-container">\r\n        <div class="typeahead-field">\r\n            <div class="input-group typeahead-query ">\r\n                <input\r\n                    id="billsSearch"\r\n                    name="SearchTerms"\r\n                    class="searchBox form-control"\r\n                    type="search"\r\n                    value=""\r\n                    data-tt-search-type="Bills"\r\n                    data-tt-search-reset="Bills"\r\n                    data-tt-url="/TypeAheadSearch"\r\n                    data-tt-branch=""\r\n                    data-tt-limit="7"\r\n                    aria-haspopup="true"\r\n                    aria-autocomplete="list"\r\n                    autocomplete="off"\r\n                    placeholder="Search Bills..."/>\r\n                <div class="input-group-btn typeahead-button">\r\n\r\n                    <button type="submit" class="btn btn-primary searchButton" aria-labelledby="billsSearch"><span class="fa fa-search"></span><span class="sr-only">Search</span></button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</form>\r\n</li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/Laws/GeneralLaws">General Laws</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li>\r\n    <a href="/Laws/GeneralLaws">\r\n        Browse General Laws\r\n            </a>\r\n</li>\r\n<li class="form-group">\r\n    <label for="generalLawsSearch">Search General Laws:</label>\r\n    <form action="/Laws/GeneralLaws/Search" method="get">    <h2 class="sr-only">Search</h2>\r\n    <label class="sr-only" for="generalLawsSearch">Search General Laws</label>\r\n    <div class="typeahead-container">\r\n        <div class="typeahead-field">\r\n            <div class="input-group typeahead-query ">\r\n                <input\r\n                    id="generalLawsSearch"\r\n                    name="SearchTerms"\r\n                    class="searchBox form-control"\r\n                    type="search"\r\n                    value=""\r\n                    data-tt-search-type="GeneralLaws"\r\n                    data-tt-search-reset="GeneralLaws"\r\n                    data-tt-url="/TypeAheadSearch"\r\n                    data-tt-branch=""\r\n                    data-tt-limit="7"\r\n                    aria-haspopup="true"\r\n                    aria-autocomplete="list"\r\n                    autocomplete="off"\r\n                    placeholder="Search General Laws..."/>\r\n                <div class="input-group-btn typeahead-button">\r\n\r\n                    <button type="submit" class="btn btn-primary searchButton" aria-labelledby="generalLawsSearch"><span class="fa fa-search"></span><span class="sr-only">Search</span></button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</form>\r\n</li>\r\n<li class="form-inline generalLawsDirect">\r\n<form action="/GeneralLaws/GoTo" method="get">            <span class="navLabel">Go to a General Law:</span>\r\n            <div class="form-group">\r\n                <label for="ChapterGoTo" class="sr-only">Chapter:</label>\r\n                <input id="ChapterGoTo" name="ChapterGoTo" type="text" value="" class="form-control" placeholder="Chapter"/>\r\n            </div>\r\n            <div class="form-group">\r\n                <label for="SectionGoTo" class="sr-only">Section Number:</label>\r\n                <input id="SectionGoTo" name="SectionGoTo" type="text" value="" class="form-control" placeholder="Section"/>\r\n            </div>\r\n            <button class="btn btn-primary searchButton" type="submit">Go <span class="sr-only"> to that General Law</span><span class="fa fa-angle-right"></span></button>\r\n</form></li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/Laws/SessionLaws">Session Laws</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li>\r\n    <a href="/Laws/SessionLaws">\r\n        Browse Session Laws\r\n            </a>\r\n</li>\r\n<li class="form-group">\r\n    <label for="sessionLawsSearch">Search Session Laws:</label>\r\n    <form action="/Laws/SessionLaws/Search" method="get">    <h2 class="sr-only">Search</h2>\r\n    <label class="sr-only" for="sessionLawsSearch">Search Session Laws</label>\r\n    <div class="typeahead-container">\r\n        <div class="typeahead-field">\r\n            <div class="input-group typeahead-query ">\r\n                <input\r\n                    id="sessionLawsSearch"\r\n                    name="SearchTerms"\r\n                    class="searchBox form-control"\r\n                    type="search"\r\n                    value=""\r\n                    data-tt-search-type="SessionLaws"\r\n                    data-tt-search-reset="SessionLaws"\r\n                    data-tt-url="/TypeAheadSearch"\r\n                    data-tt-branch=""\r\n                    data-tt-limit="7"\r\n                    aria-haspopup="true"\r\n                    aria-autocomplete="list"\r\n                    autocomplete="off"\r\n                    placeholder="Search Session Laws..."/>\r\n                <div class="input-group-btn typeahead-button">\r\n\r\n                    <button type="submit" class="btn btn-primary searchButton" aria-labelledby="sessionLawsSearch"><span class="fa fa-search"></span><span class="sr-only">Search</span></button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</form>\r\n</li>\r\n<li class="form-inline generalLawsDirect">\r\n<form action="/SessionLaws/GoTo" method="get">            <script>\r\n                var sessionLawActYears = [{"Disabled":false,"Group":null,"Selected":false,"Text":"2017","Value":"2017"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2016","Value":"2016"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2015","Value":"2015"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2014","Value":"2014"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2013","Value":"2013"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2012","Value":"2012"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2011","Value":"2011"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2010","Value":"2010"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2009","Value":"2009"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2008","Value":"2008"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2007","Value":"2007"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2006","Value":"2006"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2005","Value":"2005"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2004","Value":"2004"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2003","Value":"2003"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2002","Value":"2002"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2001","Value":"2001"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2000","Value":"2000"},{"Disabled":false,"Group":null,"Selected":false,"Text":"1999","Value":"1999"},{"Disabled":false,"Group":null,"Selected":false,"Text":"1998","Value":"1998"},{"Disabled":false,"Group":null,"Selected":false,"Text":"1997","Value":"1997"}];\r\n                var sessionLawResolveYears = [{"Disabled":false,"Group":null,"Selected":false,"Text":"2016","Value":"2016"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2014","Value":"2014"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2013","Value":"2013"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2012","Value":"2012"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2010","Value":"2010"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2009","Value":"2009"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2008","Value":"2008"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2007","Value":"2007"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2006","Value":"2006"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2004","Value":"2004"},{"Disabled":false,"Group":null,"Selected":false,"Text":"2001","Value":"2001"},{"Disabled":false,"Group":null,"Selected":false,"Text":"1998","Value":"1998"}];\r\n            </script>\r\n            <span class="navLabel">Go to a Session Law:</span>\r\n            <div class="form-group sessionLawType">\r\n                <label for="TypeGoTo" class="sr-only">Type:</label>\r\n                <select name="TypeGoTo" id="TypeGoTo" class="form-control" onchange="sessionLawTypeChange(this, \'Resolves\')">\r\n                        <option value="Acts">Act</option>\r\n                        <option value="Resolves">Resolve</option>\r\n                </select>\r\n            </div>\r\n            <div class="form-group">\r\n                <label for="ChapterGoTo" class="sr-only">Chapter:</label>\r\n                <input id="ChapterGoTo" name="ChapterGoTo" type="text" value="" class="form-control" placeholder="Chapter"/>\r\n            </div>\r\n            <div class="form-group">\r\n                <label for="YearGoTo" class="sr-only">Year:</label>\r\n                <select name="YearGoTo" id="YearGoTo" class="form-control sessionLawYearList">\r\n                        <option value="2017">2017</option>\r\n                        <option value="2016">2016</option>\r\n                        <option value="2015">2015</option>\r\n                        <option value="2014">2014</option>\r\n                        <option value="2013">2013</option>\r\n                        <option value="2012">2012</option>\r\n                        <option value="2011">2011</option>\r\n                        <option value="2010">2010</option>\r\n                        <option value="2009">2009</option>\r\n                        <option value="2008">2008</option>\r\n                        <option value="2007">2007</option>\r\n                        <option value="2006">2006</option>\r\n                        <option value="2005">2005</option>\r\n                        <option value="2004">2004</option>\r\n                        <option value="2003">2003</option>\r\n                        <option value="2002">2002</option>\r\n                        <option value="2001">2001</option>\r\n                        <option value="2000">2000</option>\r\n                        <option value="1999">1999</option>\r\n                        <option value="1998">1998</option>\r\n                        <option value="1997">1997</option>\r\n                </select>\r\n            </div>\r\n            <button type="submit" class="btn btn-primary">Go <span class="sr-only">to Session Law</span><span class="fa fa-angle-right"></span></button>\r\n</form></li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n<li>\r\n    <h3>\r\n        <a href="/Laws/Constitution">\r\n            Massachusetts Constitution\r\n                    </a>\r\n    </h3>\r\n</li>\r\n<li>\r\n    <h3>\r\n        <a href="/Journal/Senate">\r\n            Senate Journals\r\n                    </a>\r\n    </h3>\r\n</li>\r\n<li>\r\n    <h3>\r\n        <a href="/Journal/House">\r\n            House Journals\r\n                    </a>\r\n    </h3>\r\n</li>\r\n<li>\r\n    <h3>\r\n        <a href="/Laws/Rules/Joint">\r\n            Rules\r\n                    </a>\r\n    </h3>\r\n</li>\r\n<li>\r\n    <h3>\r\n        <a href="/Reports">\r\n            Reports\r\n                    </a>\r\n    </h3>\r\n</li>\r\n<li>\r\n    <h3>\r\n        <a href="/Content/Documents/General/LegislativeDraftingManual.pdf" target="_blank">\r\n            Drafting Manual\r\n                            <span class="fa fa-file-pdf-o"></span>\r\n        </a>\r\n    </h3>\r\n</li>\r\n    </ul>\r\n</div>\r\n                    </div>\r\n                </div>\r\n            </li>\r\n        </ul>\r\n</li>\r\n<li class="dropdown yamm-fw">\r\n        <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true">Budget</a>\r\n\r\n<ul class="dropdown-menu" id="budgetMenu">\r\n    <li>\r\n        <div class="yamm-content homeBudget">\r\n            <h2><a href="/Budget">FY 2018 Budget</a></h2>\r\n            <ol>\r\n                    <li class="completed">\r\n                         <a href="/Budget/GovernorsBudget">\r\n                            Governor&#39;s Budget\r\n                            <span class="indicator" aria-hidden="true"></span>\r\n                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                        </a>\r\n                    </li>\r\n                    <li class="completed">\r\n                         <a href="/Budget/HouseWaysMeansBudget">\r\n                            House Ways &amp; Means Budget\r\n                            <span class="indicator" aria-hidden="true"></span>\r\n                                <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                        </a>\r\n                    </li>\r\n                    <li class="completed">\r\n                         <a href="/Budget/HouseDebate">\r\n                            House Debate\r\n                            <span class="indicator" aria-hidden="true"></span>\r\n                                <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                        </a>\r\n                    </li>\r\n                    <li class="completed">\r\n                         <a href="/Budget/HouseBudget">\r\n                            House Budget\r\n                            <span class="indicator" aria-hidden="true"></span>\r\n                                <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                        </a>\r\n                    </li>\r\n                    <li class="completed">\r\n                         <a href="/Budget/SenateWaysMeansBudget">\r\n                            Senate Ways &amp; Means Budget\r\n                            <span class="indicator" aria-hidden="true"></span>\r\n                                <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                        </a>\r\n                    </li>\r\n                    <li class="completed">\r\n                         <a href="/Budget/SenateDebate">\r\n                            Senate Debate\r\n                            <span class="indicator" aria-hidden="true"></span>\r\n                                <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                        </a>\r\n                    </li>\r\n                    <li class="completed">\r\n                         <a href="/Budget/SenateBudget">\r\n                            Senate Budget\r\n                            <span class="indicator" aria-hidden="true"></span>\r\n                                <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                        </a>\r\n                    </li>\r\n                    <li class="completed">\r\n                         <a href="/Budget/ConferenceCommittee">\r\n                            Conference Committee\r\n                            <span class="indicator" aria-hidden="true"></span>\r\n                                <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                        </a>\r\n                    </li>\r\n                    <li class="current">\r\n                         <a href="/Budget/FinalBudget">\r\n                            Final Budget\r\n                            <span class="indicator" aria-hidden="true"></span>\r\n                                <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                    </a>\r\n                    </li>\r\n            </ol>\r\n        </div>\r\n    </li>\r\n</ul></li>\r\n<li class="dropdown yamm-fw">\r\n        <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true">Legislators</a>\r\n        <ul class="dropdown-menu">\r\n            <li>\r\n                <div class="yamm-content">\r\n                    <div class="row">\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/Legislators">Legislators</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li>\r\n    <a href="/Redistricting">\r\n        Redistricting\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/Search/FindMyLegislator">\r\n        Find Your Legislators\r\n            </a>\r\n</li>\r\n<li class="form-group">\r\n    <label for="legisSearch">Search Legislators:</label>\r\n    <form action="/Legislators/Search" method="get">    <h2 class="sr-only">Search</h2>\r\n    <label class="sr-only" for="legisSearch">Search Legislators</label>\r\n    <div class="typeahead-container">\r\n        <div class="typeahead-field">\r\n            <div class="input-group typeahead-query ">\r\n                <input\r\n                    id="legisSearch"\r\n                    name="SearchTerms"\r\n                    class="searchBox form-control"\r\n                    type="search"\r\n                    value=""\r\n                    data-tt-search-type="Legislators"\r\n                    data-tt-search-reset="Legislators"\r\n                    data-tt-url="/TypeAheadSearch"\r\n                    data-tt-branch=""\r\n                    data-tt-limit="7"\r\n                    aria-haspopup="true"\r\n                    aria-autocomplete="list"\r\n                    autocomplete="off"\r\n                    placeholder="Search Legislators..."/>\r\n                <div class="input-group-btn typeahead-button">\r\n\r\n                    <button type="submit" class="btn btn-primary searchButton" aria-labelledby="legisSearch"><span class="fa fa-search"></span><span class="sr-only">Search</span></button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</form>\r\n</li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/Legislators/Leadership">Legislative Leadership</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li>\r\n    <a href="/Legislators/Leadership">\r\n        All Leadership\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/Legislators/Leadership/Senate">\r\n        Senate Leadership\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/Legislators/Leadership/House">\r\n        House Leadership\r\n            </a>\r\n</li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/Legislators/Senate">Senate</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li>\r\n    <a href="/Legislators/Members/Senate">\r\n        All Senators\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/ClerksOffice/Senate">\r\n        Senate Clerk\r\n            </a>\r\n</li>\r\n<li>\r\n    <h3>\r\n        <a href="/cc" target="_blank">\r\n            Commonwealth Conversations\r\n                            <span class="fa fa-external-link"></span>\r\n        </a>\r\n    </h3>\r\n</li>\r\n<li>\r\n    <h3>\r\n        <a href="/cleanenergyfuture" target="_blank">\r\n            Clean Energy Future Tour\r\n                            <span class="fa fa-external-link"></span>\r\n        </a>\r\n    </h3>\r\n</li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/Legislators/House">House</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li>\r\n    <a href="/Legislators/Members/House">\r\n        All Representatives\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/ClerksOffice/House">\r\n        House Clerk\r\n            </a>\r\n</li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n                    </div>\r\n                </div>\r\n            </li>\r\n        </ul>\r\n</li>\r\n<li class="dropdown yamm-fw">\r\n        <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true">Hearings &amp; Events</a>\r\n        <ul class="dropdown-menu">\r\n            <li>\r\n                <div class="yamm-content">\r\n                    <div class="row">\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/Events">All Hearings &amp; Events</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li class="form-group">\r\n    <label for="eventSearch">Search Events:</label>\r\n    <form action="/Events/Search" method="get">    <h2 class="sr-only">Search</h2>\r\n    <label class="sr-only" for="eventSearch">Search Events</label>\r\n    <div class="typeahead-container">\r\n        <div class="typeahead-field">\r\n            <div class="input-group typeahead-query ">\r\n                <input\r\n                    id="eventSearch"\r\n                    name="SearchTerms"\r\n                    class="searchBox form-control"\r\n                    type="search"\r\n                    value=""\r\n                    data-tt-search-type="Events"\r\n                    data-tt-search-reset="Events"\r\n                    data-tt-url="/TypeAheadSearch"\r\n                    data-tt-branch=""\r\n                    data-tt-limit="7"\r\n                    aria-haspopup="true"\r\n                    aria-autocomplete="list"\r\n                    autocomplete="off"\r\n                    placeholder="Search Events..."/>\r\n                <div class="input-group-btn typeahead-button">\r\n\r\n                    <button type="submit" class="btn btn-primary searchButton" aria-labelledby="eventSearch"><span class="fa fa-search"></span><span class="sr-only">Search</span></button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</form>\r\n</li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/Events/Sessions">Sessions</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li>\r\n    <a href="/Events/Sessions/Joint">\r\n        Joint Sessions\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/Events/Sessions/Senate">\r\n        Senate Sessions\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/Events/Sessions/House">\r\n        House Sessions\r\n            </a>\r\n</li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/Events/Hearings">Hearings</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li>\r\n    <a href="/Events/Hearings/Senate">\r\n        Senate Committee Hearings\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/Events/Hearings/House">\r\n        House Committee Hearings\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/Events/Hearings/Joint">\r\n        Joint Committee Hearings\r\n            </a>\r\n</li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n<li>\r\n    <h3>\r\n        <a href="/Events/SpecialEvents">\r\n            Special Events\r\n                    </a>\r\n    </h3>\r\n</li>\r\n    </ul>\r\n</div>\r\n                    </div>\r\n                </div>\r\n            </li>\r\n        </ul>\r\n</li>\r\n<li class="dropdown yamm-fw">\r\n        <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true">Committees</a>\r\n        <ul class="dropdown-menu">\r\n            <li>\r\n                <div class="yamm-content">\r\n                    <div class="row">\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/Committees">All Committees</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li class="form-group">\r\n    <label for="committeeSearch">Search Committees:</label>\r\n    <form action="/Committees/Search" method="get">    <h2 class="sr-only">Search</h2>\r\n    <label class="sr-only" for="committeeSearch">Search Committees</label>\r\n    <div class="typeahead-container">\r\n        <div class="typeahead-field">\r\n            <div class="input-group typeahead-query ">\r\n                <input\r\n                    id="committeeSearch"\r\n                    name="SearchTerms"\r\n                    class="searchBox form-control"\r\n                    type="search"\r\n                    value=""\r\n                    data-tt-search-type="Committees"\r\n                    data-tt-search-reset="Committees"\r\n                    data-tt-url="/TypeAheadSearch"\r\n                    data-tt-branch=""\r\n                    data-tt-limit="7"\r\n                    aria-haspopup="true"\r\n                    aria-autocomplete="list"\r\n                    autocomplete="off"\r\n                    placeholder="Search Committees..."/>\r\n                <div class="input-group-btn typeahead-button">\r\n\r\n                    <button type="submit" class="btn btn-primary searchButton" aria-labelledby="committeeSearch"><span class="fa fa-search"></span><span class="sr-only">Search</span></button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</form>\r\n</li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n<li>\r\n    <h3>\r\n        <a href="/Committees/Joint">\r\n            Joint Committees\r\n                    </a>\r\n    </h3>\r\n</li>\r\n<li>\r\n    <h3>\r\n        <a href="/Committees/Senate">\r\n            Senate Committees\r\n                    </a>\r\n    </h3>\r\n</li>\r\n<li>\r\n    <h3>\r\n        <a href="/Committees/House">\r\n            House Committees\r\n                    </a>\r\n    </h3>\r\n</li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/Events/Hearings">Committee Hearings</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li>\r\n    <a href="/Events/Hearings/Senate">\r\n        Senate Committee Hearings\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/Events/Hearings/House">\r\n        House Committee Hearings\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/Events/Hearings/Joint">\r\n        Joint Committee Hearings\r\n            </a>\r\n</li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n<li>\r\n    <h3>\r\n        <a href="/Content/Documents/Committees/Committee%20Book.pdf" target="_blank">\r\n            Committee Book\r\n                            <span class="fa fa-file-pdf-o"></span>\r\n        </a>\r\n    </h3>\r\n</li>\r\n    </ul>\r\n</div>\r\n                    </div>\r\n                </div>\r\n            </li>\r\n        </ul>\r\n</li>\r\n<li class="dropdown yamm-fw">\r\n        <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true">State House</a>\r\n        <ul class="dropdown-menu">\r\n            <li>\r\n                <div class="yamm-content">\r\n                    <div class="row">\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/StateHouse/Visit">Visit the State House</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li>\r\n    <a href="/StateHouse/Tour">\r\n        On-site Tour\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/VirtualTour" target="_blank">\r\n        Virtual Tour\r\n            </a>\r\n</li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/StateHouse/Accessibility">Accessibility</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li>\r\n    <a href="/StateHouse/AccessibilityForm">\r\n        Request Accessibility\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/StateHouse/WebAccessibilityPolicy">\r\n        Web Accessibility Policy\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/StateHouse/AccessibilityInitiatives">\r\n        Accessibility Initiatives\r\n            </a>\r\n</li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/StateHouse/EducationalOpportunities">Educational Opportunities</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li>\r\n    <a href="/StateHouse/EducationalOpportunities/Internships">\r\n        Internships\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/StateHouse/EducationalOpportunities/StudentGovernmentDay">\r\n        Student Government Day\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/StateHouse/EducationalOpportunities/CitizensLegislativeSeminar">\r\n        Citizens&#39; Legislative Seminar\r\n            </a>\r\n</li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n<li>\r\n    <h3>\r\n        <a href="/StateHouse/MediaGallery">\r\n            Media Gallery\r\n                    </a>\r\n    </h3>\r\n</li>\r\n    </ul>\r\n</div>\r\n<div class="col-xs-12 col-sm-3">\r\n    <ul class="list-unstyled">\r\n        <li>\r\n            <h3>\r\n                <a href="/StateHouse/Contact">Contact Us</a>\r\n            </h3>\r\n            <ul class="list-unstyled">\r\n<li>\r\n    <a href="/StateHouse/FAQ">\r\n        FAQ\r\n            </a>\r\n</li>\r\n<li>\r\n    <a href="/StateHouse/Glossary">\r\n        Glossary\r\n            </a>\r\n</li>\r\n            </ul>\r\n        </li>\r\n    </ul>\r\n</div>\r\n                    </div>\r\n                </div>\r\n            </li>\r\n        </ul>\r\n</li>\r\n\r\n            </ul>\r\n        </div>\r\n        <!--/.nav-collapse -->\r\n    </div>\r\n    <!--/.container -->\r\n</nav>\r\n\r\n    <!-- MAIN CONTENT -->\r\n    <span id="mainContent" class="sr-only"></span>\r\n    <main>\r\n        \r\n<h1 class="sr-only">Massachusetts Legislature Homepage</h1>\r\n\r\n<!-- 01 - Search -->\r\n<form action="/Search" class="container" id="homeSearch" method="get">    <h2 class="sr-only">Search</h2>\r\n    <label class="sr-only" for="fullSearch">Search the Legislature</label>\r\n    <div class="typeahead-container">\r\n        <div class="typeahead-field">\r\n            <div class="input-group typeahead-query input-group-lg">\r\n                <input\r\n                    id="fullSearch"\r\n                    name="SearchTerms"\r\n                    class="searchBox form-control"\r\n                    type="search"\r\n                    value=""\r\n                    data-tt-search-type="Bills, GeneralLaws, SessionLaws, Committees, Legislators, Events, Journals, Reports"\r\n                    data-tt-search-reset="Bills, GeneralLaws, SessionLaws, Committees, Legislators, Events, Journals, Reports"\r\n                    data-tt-url="/TypeAheadSearch"\r\n                    data-tt-branch=""\r\n                    data-tt-limit="7"\r\n                    aria-haspopup="true"\r\n                    aria-autocomplete="list"\r\n                    autocomplete="off"\r\n                    placeholder="Search the Legislature..."/>\r\n                <div class="input-group-btn typeahead-button">\r\n\r\n                    <button type="submit" class="btn btn-primary searchButton" aria-labelledby="fullSearch"><span class="fa fa-search"></span><span class="sr-only">Search</span></button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</form>\r\n<!-- /.container -->\r\n\r\n<!-- CONTENT CONTAINERS -->\r\n<div class="content">\r\n    <div id="homeContainer" class="container">\r\n        <div class="row">\r\n            <!-- 02 - People -->\r\n            <div class="col-xs-12 col-sm-4 col-lg-3">\r\n                <div id="homePeople" class="homeTile">\r\n                    <h2><a href="/Legislators">Legislators</a></h2>\r\n                    <div class="peopleSection clearfix">\r\n                        <h3><a href="/Legislators/Senate">Senate</a></h3>\r\n                        <a class="peopleImgLink visible-md visible-lg" href="/Legislators/Senate">\r\n                            <img src="/assets/img/senate-placeholder.jpg" alt="Photo of the Senate Chamber" /></a>\r\n                        <a class="btn btn-primary btn-block" href="/Legislators/Members/Senate">All Senators</a>\r\n                        <a class="btn btn-primary btn-block" href="/ClerksOffice/Senate">Senate Clerk</a>\r\n                    </div>\r\n                    <div class="peopleSection clearfix">\r\n                        <h3><a href="/Legislators/House">House <span>of Representatives</span></a></h3>\r\n                        <a class="peopleImgLink visible-md visible-lg" href="/Legislators/House">\r\n                            <img src="/assets/img/house-placeholder.jpg" alt="Photo of the House Floor" /></a>\r\n                        <a class="btn btn-primary btn-block" href="/Legislators/Members/House">All Representatives</a>\r\n                        <a class="btn btn-primary btn-block" href="/ClerksOffice/House">House Clerk</a>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n\r\n            <!-- 03 - Events & Hearings -->\r\n            <div class="col-xs-12 col-sm-8 col-lg-6">\r\n                <div id="homeEventsHearings" class="homeTile">\r\n                    <h2><a href="/Events">Hearings & Events</a></h2>\r\n                    <div class="table-responsive">\r\n                        <table class="table table-striped table-condensed">\r\n                            <thead>\r\n                                <tr>\r\n                                    <th scope="col"><span class=\'sr-only\'>Follow In My Legislature</span></th>\r\n                                    <th scope="col"><span class="sr-only">Live Video</span></th>\r\n                                    <th scope="col">Date</th>\r\n                                    <th scope="col">Time</th>\r\n                                    <th scope="col">Event Title</th>\r\n                                    <th scope="col">Location</th>\r\n                                </tr>\r\n                            </thead>\r\n                            <tbody>\r\n                                    <tr>\r\n                                        <td>        <a data-target="#exclusiveFeatureModal" data-toggle="modal" title="Follow in MyLegislature" aria-haspopup="true">\r\n            <span class="fa fa-star fa-fw mlNotFollowing"></span>\r\n        </a>\r\n </td>\r\n                                        <td class="video">\r\n                                                <span class="sr-only">No video avaliable.</span>\r\n\r\n                                        </td>\r\n                                        <td>\r\n                                              <span class="dayOfTheWeek">Wednesday,</span>\r\n                                              Oct. 25\r\n                                        </td>\r\n                                        <td class="noWrap">10:00 AM</td>\r\n                                        <td>\r\n                                            <a href="/Events/Hearings/Detail/2781" class ="">              \r\nJoint Committee on State Administration and Regulatory Oversight                                            </a>\r\n                                        </td>\r\n                                        <td>\r\n                                                <a href="/GetMap/424?name=A-2" data-toggle="modal" data-target="#locationModal">A-2</a>\r\n                                        </td>\r\n                                    </tr>\r\n                                    <tr>\r\n                                        <td> </td>\r\n                                        <td class="video">\r\n                                                <a href="/Events/Sessions/Detail/2945"\r\n       title="Live">\r\n        <span class="fa fa-video-camera"></span>\r\n        <span>Live</span>\r\n    </a>\r\n\r\n                                        </td>\r\n                                        <td>\r\n                                              <span class="dayOfTheWeek">Wednesday,</span>\r\n                                              Oct. 25\r\n                                        </td>\r\n                                        <td class="noWrap">11:00 AM</td>\r\n                                        <td>\r\n                                            <a href="/Events/Sessions/Detail/2945" class ="">              \r\nFormal House Session                                             </a>\r\n                                        </td>\r\n                                        <td>\r\nHouse Chamber                                        </td>\r\n                                    </tr>\r\n                                    <tr>\r\n                                        <td>        <a data-target="#exclusiveFeatureModal" data-toggle="modal" title="Follow in MyLegislature" aria-haspopup="true">\r\n            <span class="fa fa-star fa-fw mlNotFollowing"></span>\r\n        </a>\r\n </td>\r\n                                        <td class="video">\r\n                                                <span class="sr-only">No video avaliable.</span>\r\n\r\n                                        </td>\r\n                                        <td>\r\n                                              <span class="dayOfTheWeek">Wednesday,</span>\r\n                                              Oct. 25\r\n                                        </td>\r\n                                        <td class="noWrap">2:00 PM</td>\r\n                                        <td>\r\n                                            <a href="/Events/Hearings/Detail/2785" class ="">              \r\nJoint Committee on Veterans and Federal Affairs                                            </a>\r\n                                        </td>\r\n                                        <td>\r\n                                                <a href="/GetMap/941?name=B-1%20%26%20B-2" data-toggle="modal" data-target="#locationModal">B-1 &amp; B-2</a>\r\n                                        </td>\r\n                                    </tr>\r\n                                    <tr>\r\n                                        <td>        <a data-target="#exclusiveFeatureModal" data-toggle="modal" title="Follow in MyLegislature" aria-haspopup="true">\r\n            <span class="fa fa-star fa-fw mlNotFollowing"></span>\r\n        </a>\r\n </td>\r\n                                        <td class="video">\r\n                                                <span class="sr-only">No video avaliable.</span>\r\n\r\n                                        </td>\r\n                                        <td>\r\n                                              <span class="dayOfTheWeek">Thursday,</span>\r\n                                              Oct. 26\r\n                                        </td>\r\n                                        <td class="noWrap">10:00 AM</td>\r\n                                        <td>\r\n                                            <a href="/Events/Hearings/Detail/2797" class ="">              \r\nJoint Committee on Telecommunications, Utilities and Energy                                            </a>\r\n                                        </td>\r\n                                        <td>\r\n                                                <a href="/GetMap/424?name=A-2" data-toggle="modal" data-target="#locationModal">A-2</a>\r\n                                        </td>\r\n                                    </tr>\r\n                                    <tr>\r\n                                        <td> </td>\r\n                                        <td class="video">\r\n                                                <a href="/Events/Sessions/Detail/2944"\r\n       title="Upcoming">\r\n        <span class="fa fa-video-camera"></span>\r\n        <span>Upcoming</span>\r\n    </a>\r\n\r\n                                        </td>\r\n                                        <td>\r\n                                              <span class="dayOfTheWeek">Thursday,</span>\r\n                                              Oct. 26\r\n                                        </td>\r\n                                        <td class="noWrap">11:00 AM</td>\r\n                                        <td>\r\n                                            <a href="/Events/Sessions/Detail/2944" class ="">              \r\nSenate Session (Full Formal with Calendar)                                            </a>\r\n                                        </td>\r\n                                        <td>\r\nSenate Chamber                                        </td>\r\n                                    </tr>\r\n                                    <tr>\r\n                                        <td>        <a data-target="#exclusiveFeatureModal" data-toggle="modal" title="Follow in MyLegislature" aria-haspopup="true">\r\n            <span class="fa fa-star fa-fw mlNotFollowing"></span>\r\n        </a>\r\n </td>\r\n                                        <td class="video">\r\n                                                <span class="sr-only">No video avaliable.</span>\r\n\r\n                                        </td>\r\n                                        <td>\r\n                                              <span class="dayOfTheWeek">Monday,</span>\r\n                                              Oct. 30\r\n                                        </td>\r\n                                        <td class="noWrap">10:30 AM</td>\r\n                                        <td>\r\n                                            <a href="/Events/Hearings/Detail/2773" class ="">              \r\nJoint Committee on Public Health                                            </a>\r\n                                        </td>\r\n                                        <td>\r\n                                                <a href="/GetMap/940?name=A-1%20%26%20A-2" data-toggle="modal" data-target="#locationModal">A-1 &amp; A-2</a>\r\n                                        </td>\r\n                                    </tr>\r\n                                    <tr>\r\n                                        <td>        <a data-target="#exclusiveFeatureModal" data-toggle="modal" title="Follow in MyLegislature" aria-haspopup="true">\r\n            <span class="fa fa-star fa-fw mlNotFollowing"></span>\r\n        </a>\r\n </td>\r\n                                        <td class="video">\r\n                                                <span class="sr-only">No video avaliable.</span>\r\n\r\n                                        </td>\r\n                                        <td>\r\n                                              <span class="dayOfTheWeek">Monday,</span>\r\n                                              Oct. 30\r\n                                        </td>\r\n                                        <td class="noWrap">10:30 AM</td>\r\n                                        <td>\r\n                                            <a href="/Events/Hearings/Detail/2806" class ="">              \r\nJoint Committee on Financial Services                                            </a>\r\n                                        </td>\r\n                                        <td>\r\n                                                <a href="/GetMap/423?name=B-1" data-toggle="modal" data-target="#locationModal">B-1</a>\r\n                                        </td>\r\n                                    </tr>\r\n                            </tbody>\r\n                        </table>\r\n                        <a href="/Events" class="pull-right moreLink">View all Upcoming Hearings & Events <span class="fa fa-chevron-right"></span></a>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <!-- 04 - Bills & Laws -->\r\n            <div class="col-xs-12 col-sm-6 col-lg-3">\r\n                <div id="homeBillsLaws" class="homeTile">\r\n                    <h2><a href="/Bills">Bills & Laws</a></h2>\r\n                    <div class="visible-xs">\r\n                        <form action="/Bills/Search" method="get">    <h2 class="sr-only">Search</h2>\r\n    <label class="sr-only" for="billSearch">Search Bills</label>\r\n    <div class="typeahead-container">\r\n        <div class="typeahead-field">\r\n            <div class="input-group typeahead-query ">\r\n                <input\r\n                    id="billSearch"\r\n                    name="SearchTerms"\r\n                    class="searchBox form-control"\r\n                    type="search"\r\n                    value=""\r\n                    data-tt-search-type="Bills"\r\n                    data-tt-search-reset="Bills"\r\n                    data-tt-url="/TypeAheadSearch"\r\n                    data-tt-branch=""\r\n                    data-tt-limit="7"\r\n                    aria-haspopup="true"\r\n                    aria-autocomplete="list"\r\n                    autocomplete="off"\r\n                    placeholder="Search Bills..."/>\r\n                <div class="input-group-btn typeahead-button">\r\n\r\n                    <button type="submit" class="btn btn-primary searchButton" aria-labelledby="billSearch"><span class="fa fa-search"></span><span class="sr-only">Search</span></button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</form>\r\n                    </div>\r\n                    <a class="btn btn-primary btn-block btn-lg" href="/Bills"><span class="fa fa-file-text-o"></span>Bills</a>\r\n                    <a class="btn btn-primary btn-block btn-lg" href="/Laws/GeneralLaws"><span class="fa fa-file-text"></span>General Laws</a>\r\n                    <a class="btn btn-primary btn-block btn-lg" href="/Laws/SessionLaws"><span class="fa fa-file-text"></span>Session Laws</a>\r\n                    <a class="btn btn-primary btn-block btn-lg" href="/Laws/Constitution"><span class="fa fa-book"></span>Constitution</a>\r\n                </div>\r\n            </div>\r\n            <!-- 05 - Budget -->\r\n            <div class="col-xs-12 col-sm-6 col-lg-12 wrap-lg">\r\n                <div class="homeTile homeBudget">\r\n                    <h2><a href="/Budget">FY 2018 Budget</a></h2>\r\n                    <ol>\r\n                            <li class="completed">\r\n                                <a href="/Budget/GovernorsBudget">\r\n                                    Governor&#39;s Budget\r\n                                    <span class="indicator" aria-hidden="true"></span>\r\n                                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                                </a>\r\n                            </li>\r\n                            <li class="completed">\r\n                                <a href="/Budget/HouseWaysMeansBudget">\r\n                                    House Ways &amp; Means Budget\r\n                                    <span class="indicator" aria-hidden="true"></span>\r\n                                        <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                                </a>\r\n                            </li>\r\n                            <li class="completed">\r\n                                <a href="/Budget/HouseDebate">\r\n                                    House Debate\r\n                                    <span class="indicator" aria-hidden="true"></span>\r\n                                        <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                                </a>\r\n                            </li>\r\n                            <li class="completed">\r\n                                <a href="/Budget/HouseBudget">\r\n                                    House Budget\r\n                                    <span class="indicator" aria-hidden="true"></span>\r\n                                        <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                                </a>\r\n                            </li>\r\n                            <li class="completed">\r\n                                <a href="/Budget/SenateWaysMeansBudget">\r\n                                    Senate Ways &amp; Means Budget\r\n                                    <span class="indicator" aria-hidden="true"></span>\r\n                                        <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                                </a>\r\n                            </li>\r\n                            <li class="completed">\r\n                                <a href="/Budget/SenateDebate">\r\n                                    Senate Debate\r\n                                    <span class="indicator" aria-hidden="true"></span>\r\n                                        <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                                </a>\r\n                            </li>\r\n                            <li class="completed">\r\n                                <a href="/Budget/SenateBudget">\r\n                                    Senate Budget\r\n                                    <span class="indicator" aria-hidden="true"></span>\r\n                                        <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                                </a>\r\n                            </li>\r\n                            <li class="completed">\r\n                                <a href="/Budget/ConferenceCommittee">\r\n                                    Conference Committee\r\n                                    <span class="indicator" aria-hidden="true"></span>\r\n                                        <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                                            <span class="indicatorLine right" aria-hidden="true"></span>\r\n                                </a>\r\n                            </li>\r\n                            <li class="current">\r\n                                <a href="/Budget/FinalBudget">\r\n                                    Final Budget\r\n                                    <span class="indicator" aria-hidden="true"></span>\r\n                                        <span class="indicatorLine left" aria-hidden="true"></span>\r\n                                                                    </a>\r\n                            </li>\r\n                    </ol>\r\n                </div>\r\n            </div>\r\n            <div class="col-xs-12 visible-xs">\r\n                <div id="homeStateHouse" class="homeTile">\r\n                    <h2>State House</h2>\r\n                    <a href="/StateHouse/Visit" class="btn btn-primary btn-block btn-lg">Visit the State House</a>\r\n                    <a href="/StateHouse/Tour" class="btn btn-primary btn-block btn-lg">On-site Tours</a>\r\n                    <a href="/VirtualTour" target="_blank" class="btn btn-primary btn-block btn-lg">Virtual Tour</a>\r\n                    <a href="/StateHouse/Accessibility" class="btn btn-primary btn-block btn-lg">Accessibility</a>\r\n                    <a href="/StateHouse/Contact" class="btn btn-primary btn-block btn-lg">Contact Us</a>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <!-- /.row -->\r\n    </div>\r\n    <!-- /.container -->\r\n</div>\r\n<!-- /.content -->\r\n\r\n<!-- BUCKETS -->\r\n<div class="homeBuckets">\r\n    <div class="container hidden-xs">\r\n        <div class="row">\r\n            <div class="col-sm-12 col-lg-6">\r\n                <h2>Most Popular General Laws</h2>\r\n                <table class="table table-striped popularTable lawsTable">\r\n                    <thead>\r\n    <tr>\r\n        <th scope="col" class="numberCol">Chapter</th>\r\n        <th scope="col" class="titleCol">Section Name</th>\r\n    </tr>\r\n</thead>\r\n<tbody>\r\n        <tr>\r\n            <td><a href="/Laws/GeneralLaws/PartI/TitleXX/Chapter140/Section131">\xc2\xa0MGL c.140 \xc2\xa7131</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="Licenses to carry firearms; conditions and restrictions" tabindex="0">Licenses to carry firearms; conditions and restrictions</td>\r\n        </tr>\r\n        <tr>\r\n            <td><a href="/Laws/GeneralLaws/PartI/TitleXVII/Chapter123/Section12">\xc2\xa0MGL c.123 \xc2\xa712</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="Emergency restraint and hospitalization of persons posing risk of serious harm by reason of mental illness" tabindex="0">Emergency restraint and hospitalization of persons posing risk of serious harm by reason of mental illness</td>\r\n        </tr>\r\n        <tr>\r\n            <td><a href="/Laws/GeneralLaws/PartII/TitleI/Chapter186/Section15B">\xc2\xa0MGL c.186 \xc2\xa715B</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="Entrance of premises prior to termination of lease; payments; receipts; interest; records; security deposits" tabindex="0">Entrance of premises prior to termination of lease; payments; receipts; interest; records; security deposits</td>\r\n        </tr>\r\n        <tr>\r\n            <td><a href="/Laws/GeneralLaws/PartI/TitleXIV/Chapter90/Section24">\xc2\xa0MGL c.90 \xc2\xa724</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="Driving while under influence of intoxicating liquor, etc.; second and subsequent offenses; punishment; treatment programs; reckless and unauthorized driving; failure to stop after collision" tabindex="0">Driving while under influence of intoxicating liquor, etc.; second and subsequent offenses; punishment; treatment programs; reckless and unauthorized driving; failure to stop after collision</td>\r\n        </tr>\r\n        <tr>\r\n            <td><a href="/Laws/GeneralLaws/PartIV/TitleI/Chapter269/Section10">\xc2\xa0MGL c.269 \xc2\xa710</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="Carrying dangerous weapons; possession of machine gun or sawed-off shotguns; possession of large capacity weapon or large capacity feeding device; punishment" tabindex="0">Carrying dangerous weapons; possession of machine gun or sawed-off shotguns; possession of large capacity weapon or large capacity feeding device; punishment</td>\r\n        </tr>\r\n        <tr>\r\n            <td><a href="/Laws/GeneralLaws/PartI/TitleXXI/Chapter149/Section148">\xc2\xa0MGL c.149 \xc2\xa7148</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="Payment of wages; commissions; exemption by contract; persons deemed employers; provision for cashing check or draft; violation of statute" tabindex="0">Payment of wages; commissions; exemption by contract; persons deemed employers; provision for cashing check or draft; violation of statute</td>\r\n        </tr>\r\n        <tr>\r\n            <td><a href="/Laws/GeneralLaws/PartI/TitleXXI/Chapter151/Section1A">\xc2\xa0MGL c.151 \xc2\xa71A</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="Overtime pay; excluded employments" tabindex="0">Overtime pay; excluded employments</td>\r\n        </tr>\r\n        <tr>\r\n            <td><a href="/Laws/GeneralLaws/PartI/TitleXXI/Chapter151B/Section4">\xc2\xa0MGL c.151B \xc2\xa74</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="Unlawful practices" tabindex="0">Unlawful practices</td>\r\n        </tr>\r\n        <tr>\r\n            <td><a href="/Laws/GeneralLaws/Partiv/Titlei/Chapter265/Section13a">\xc2\xa0MGL c.265 \xc2\xa713a</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="Assault or assault and battery; punishment" tabindex="0">Assault or assault and battery; punishment</td>\r\n        </tr>\r\n        <tr>\r\n            <td><a href="/Laws/GeneralLaws/PartI/TitleXVII/Chapter119/Section51A">\xc2\xa0MGL c.119 \xc2\xa751A</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="Reporting of suspected abuse or neglect; mandated reporters; collection of physical evidence; penalties; content of reports; liability; privileged communication" tabindex="0">Reporting of suspected abuse or neglect; mandated reporters; collection of physical evidence; penalties; content of reports; liability; privileged communication</td>\r\n        </tr>\r\n</tbody>\r\n\r\n                </table>\r\n            </div>\r\n            <div class="col-sm-12 col-lg-6">\r\n                <h2>Most Popular Bills</h2>\r\n                <table class="table table-striped popularTable">\r\n                    <thead>\r\n    <tr>\r\n        <th scope="col" class="iconCell"><span class="sr-only">Followed</span></th>\r\n        <th scope="col" class="numberCol">Bill No.</th>\r\n        <th scope="col" class="titleCol">Title</th>\r\n    </tr>\r\n</thead>\r\n<tbody>\r\n        <tr>\r\n            <td class="iconCell">        <a data-target="#exclusiveFeatureModal" data-toggle="modal" title="Follow in MyLegislature" aria-haspopup="true">\r\n            <span class="fa fa-star fa-fw mlNotFollowing"></span>\r\n        </a>\r\n</td>\r\n            <td><a href="/Bills/190/H1449">H.1449&nbsp;</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="An Act relative to Massachusetts certified emergency telecommunicators" tabindex="0">An Act relative to Massachusetts certified emergency telecommunicators</td>\r\n        </tr>\r\n        <tr>\r\n            <td class="iconCell">        <a data-target="#exclusiveFeatureModal" data-toggle="modal" title="Follow in MyLegislature" aria-haspopup="true">\r\n            <span class="fa fa-star fa-fw mlNotFollowing"></span>\r\n        </a>\r\n</td>\r\n            <td><a href="/Bills/190/S2185">S.2185&nbsp;</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="An Act relative to criminal justice reform" tabindex="0">An Act relative to criminal justice reform</td>\r\n        </tr>\r\n        <tr>\r\n            <td class="iconCell">        <a data-target="#exclusiveFeatureModal" data-toggle="modal" title="Follow in MyLegislature" aria-haspopup="true">\r\n            <span class="fa fa-star fa-fw mlNotFollowing"></span>\r\n        </a>\r\n</td>\r\n            <td><a href="/Bills/190/S3">S.3&nbsp;</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="An Act making appropriations for the fiscal year 2018 for the maintenance of the departments, boards, commissions, institutions, and certain activities of the Commonwealth, for interest, sinking fund, and serial bond requirements, and for certain permanent improvements" tabindex="0">An Act making appropriations for the fiscal year 2018 for the maintenance of the departments, boards, commissions, institutions, and certain activities of the Commonwealth, for interest, sinking fund, and serial bond requirements, and for certain permanent improvements</td>\r\n        </tr>\r\n        <tr>\r\n            <td class="iconCell">        <a data-target="#exclusiveFeatureModal" data-toggle="modal" title="Follow in MyLegislature" aria-haspopup="true">\r\n            <span class="fa fa-star fa-fw mlNotFollowing"></span>\r\n        </a>\r\n</td>\r\n            <td><a href="/Bills/190/H58">H.58&nbsp;</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="An Act further regulating the compensation of certain public officials" tabindex="0">An Act further regulating the compensation of certain public officials</td>\r\n        </tr>\r\n        <tr>\r\n            <td class="iconCell">        <a data-target="#exclusiveFeatureModal" data-toggle="modal" title="Follow in MyLegislature" aria-haspopup="true">\r\n            <span class="fa fa-star fa-fw mlNotFollowing"></span>\r\n        </a>\r\n</td>\r\n            <td><a href="/Bills/190/S16">S.16&nbsp;</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="Text of the proposed Senate amendment (Senator Spilka) to the House Bill relative to the Compensation of Public Officials (House, No. 58)" tabindex="0">Text of the proposed Senate amendment (Senator Spilka) to the House Bill relative to the Compensation of Public Officials (House, No. 58)</td>\r\n        </tr>\r\n        <tr>\r\n            <td class="iconCell">        <a data-target="#exclusiveFeatureModal" data-toggle="modal" title="Follow in MyLegislature" aria-haspopup="true">\r\n            <span class="fa fa-star fa-fw mlNotFollowing"></span>\r\n        </a>\r\n</td>\r\n            <td><a href="/Bills/190/H2017">H.2017&nbsp;</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="Order (filed by Mr. DeLeo of Winthrop) relative to House Rules for the 190th General Court governing the 2017-2018 legislative sessions (House, No. 2017). February 1, 2017" tabindex="0">Order (filed by Mr. DeLeo of Winthrop) relative to House Rules for the 190th General Court governing the 2017-2018 legislative sessions (House, No. 2017). February 1, 2017</td>\r\n        </tr>\r\n        <tr>\r\n            <td class="iconCell">        <a data-target="#exclusiveFeatureModal" data-toggle="modal" title="Follow in MyLegislature" aria-haspopup="true">\r\n            <span class="fa fa-star fa-fw mlNotFollowing"></span>\r\n        </a>\r\n</td>\r\n            <td><a href="/Bills/190/H67">H.67&nbsp;</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="An Act establishing a sick leave bank for Valencia Hadley, an employee of the Department of Transitional Assistance" tabindex="0">An Act establishing a sick leave bank for Valencia Hadley, an employee of the Department of Transitional Assistance</td>\r\n        </tr>\r\n        <tr>\r\n            <td class="iconCell">        <a data-target="#exclusiveFeatureModal" data-toggle="modal" title="Follow in MyLegislature" aria-haspopup="true">\r\n            <span class="fa fa-star fa-fw mlNotFollowing"></span>\r\n        </a>\r\n</td>\r\n            <td><a href="/Bills/190/S2074">S.2074&nbsp;</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="Report of the Special Commission on Pension Forfeiture" tabindex="0">Report of the Special Commission on Pension Forfeiture</td>\r\n        </tr>\r\n        <tr>\r\n            <td class="iconCell">        <a data-target="#exclusiveFeatureModal" data-toggle="modal" title="Follow in MyLegislature" aria-haspopup="true">\r\n            <span class="fa fa-star fa-fw mlNotFollowing"></span>\r\n        </a>\r\n</td>\r\n            <td><a href="/Bills/190/S2164">S.2164&nbsp;</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="An Act protecting Massachusetts pollinators" tabindex="0">An Act protecting Massachusetts pollinators</td>\r\n        </tr>\r\n        <tr>\r\n            <td class="iconCell">        <a data-target="#exclusiveFeatureModal" data-toggle="modal" title="Follow in MyLegislature" aria-haspopup="true">\r\n            <span class="fa fa-star fa-fw mlNotFollowing"></span>\r\n        </a>\r\n</td>\r\n            <td><a href="/Bills/190/H57">H.57&nbsp;</a></td>\r\n            <td data-toggle="tooltip" data-placement="top" data-container="body" data-aria-describedby="none" title="Pardons" tabindex="0">Pardons</td>\r\n        </tr>\r\n</tbody>\r\n\r\n                </table>\r\n            </div>\r\n        </div>\r\n        <!-- /.row -->\r\n    </div>\r\n    <!-- /.container -->\r\n</div>\r\n<!-- /.homeBuckets -->\r\n<div id="homeQuestions">\r\n    <div class="container">\r\n        <div class="row">\r\n            <div class="col-sm-12">\r\n                <h2><a href="/StateHouse/Faq">Have a Question?</a>\r\n                </h2>\r\n                <ul class="list-inline">\r\n                        <li>\r\n                            <a href="/StateHouse/FAQ#voting1q" class="btn btn-primary btn-md">How do I register to vote?</a>\r\n                        </li> \r\n                        <li>\r\n                            <a href="/StateHouse/FAQ#voting2q" class="btn btn-primary btn-md">Where do I vote?</a>\r\n                        </li> \r\n                        <li>\r\n                            <a href="/StateHouse/FAQ#transportationandvehicles2q" class="btn btn-primary btn-md">How do I schedule a road test?</a>\r\n                        </li> \r\n                        <li>\r\n                            <a href="/StateHouse/FAQ#unemployment1q" class="btn btn-primary btn-md">How do I apply for unemployment?</a>\r\n                        </li> \r\n                        <li>\r\n                            <a href="/StateHouse/FAQ#healthandpublicsafety5q" class="btn btn-primary btn-md">How do I register my firearm?</a>\r\n                        </li> \r\n                        <li>\r\n                            <a href="/StateHouse/FAQ#workplacesupport3q" class="btn btn-primary btn-md">Do I qualify for overtime?</a>\r\n                        </li> \r\n                    <li class="viewMore">\r\n                        <a href="/Statehouse/Faq" class="btn btn-secondary btn-sm">Explore more questions...</a>\r\n                    </li>\r\n                </ul>\r\n            </div>\r\n        </div>\r\n        <!-- /.row -->\r\n    </div>\r\n    <!-- /.container -->\r\n</div>\r\n<!-- /#homeQuestions -->\r\n    </main>\r\n</div>\r\n<!--Footer-->\r\n<footer>\r\n    <h2 class="sr-only">Site Information & Links</h2>\r\n    <div class="container">\r\n        <div class="row">\r\n            <div class="col-xs-12 col-sm-6 col-md-3">\r\n                <h3>Helpful Massachusetts Links</h3>\r\n                <ul class="list-unstyled">\r\n                    <li><a target="_blank" href="http://www.mass.gov/">Mass.gov</a></li>\r\n                    <li><a target="_blank" href="http://jobs.hrd.state.ma.us/">Commonwealth Employment Opportunities</a></li>\r\n                    <li><a target="_blank" href="http://www.sec.state.ma.us/">Secretary of the Commonwealth</a></li>\r\n                    <li><a target="_blank" href="http://massdot.state.ma.us/">Mass DOT</a></li>\r\n                    <li><a target="_blank" href="http://appointments.state.ma.us/">Boards & Commissions</a></li>\r\n                    <li><a target="_blank" href="http://www.mass.gov/ago/doing-business-in-massachusetts/public-charities-or-not-for-profits/">Non-Profits & Charities</a></li>\r\n                    <li><a target="_blank" href="http://libraries.state.ma.us/">Libraries</a></li>\r\n                </ul>\r\n            </div>\r\n            <div class="col-xs-12 col-sm-6 col-md-3">\r\n                \r\n                <h3>Quick Links</h3>\r\n                <ul class="list-unstyled">\r\n                    <li><a href="/StateHouse/Accessibility">Accessibility</a></li>\r\n                    <li><a href="/MyLegislature">MyLegislature</a></li>\r\n                    <li><a href="/Laws/GeneralLaws">Massachusetts General Laws</a></li>\r\n                    <li><a href="/Search/FindMyLegislator">Find My Legislator</a></li>\r\n                    <li><a href="/StateHouse/Visit">Visit the State House</a></li>\r\n                    <li><a href="/StateHouse/Contact">Contact Us</a></li>\r\n                    <li><a href="/StateHouse/ContactWebmaster">Contact the Webmaster</a></li>\r\n                    <li><a href="/StateHouse/Privacy">Privacy Policy</a></li>\r\n                    <li><a href="/StateHouse/TermsAndConditions">Terms And Conditions</a></li>\r\n                </ul>\r\n            </div>\r\n            <div class="col-xs-12 col-md-6 copyright">\r\n                Copyright &copy; 2017 The General Court of the Commonwealth of Massachusetts\r\n            </div>\r\n        </div>\r\n    </div>\r\n</footer>\r\n\r\n<!--Modals-->\r\n<div class="modal fade" tabindex="-1" role="dialog" id="registrationModal">\r\n    <div class="modal-dialog modal-lg" role="document">\r\n        <div class="modal-content registrationModal">\r\n            <div class="modal-header">\r\n                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>\r\n                <h4 class="modal-title">Register for MyLegislature</h4>\r\n            </div>\r\n            <div class="modal-body">\r\n                <div class="row">\r\n                    <div class="col-xs-12 col-sm-5">\r\n                        <h5 class="text-center">Register With An Existing Account</h5>\r\n                        <button onclick="window.location = \'/Account/ExternalLogin?provider=Facebook\'" type="button" class="btn btn-facebook btn-lg btn-block oauthButton"><span class="fa fa-facebook-official fa-fw"></span> Sign in<span class="hidden-xs hidden-sm"> with Facebook</span></button>\r\n<button onclick="window.location = \'/Account/ExternalLogin?provider=Google\'" type="button" class="btn btn-google btn-lg btn-block oauthButton"><span class="fa fa-google-plus fa-fw"></span> Sign in<span class="hidden-xs hidden-sm"> with Google</span></button>\r\n                    </div>\r\n                    <div class="col-xs-12 col-sm-7 vDivide">\r\n                        <h5 class="text-center">Register With Your Email Address</h5>\r\n<form action="/Account/Register" data-ajax="true" data-ajax-begin="inProgress" data-ajax-method="POST" data-ajax-success="registrationModalFormOnSuccess" id="registrationModalForm" method="post" role="form"><input name="__RequestVerificationToken" type="hidden" value="o-muSqC0tadvm1DgaarXQgw4pAmovrIGISuRgUSQhtjRVnuQoWHGa-JHctn5j4PetUXpqwpGvsfoVUYyh7Op7MpKbXI1" />\r\n\r\n<div class="form-group">\r\n    <label class="sr-only" for="Email">Email Address</label>\r\n    <div class="input-group">\r\n        <span class="input-group-addon"><span class="fa fa-user fa-fw"></span></span>\r\n        <input class="form-control" data-val="true" data-val-email="Invalid email address." data-val-required="Email address is required." id="Email" name="Email" placeholder="Email Address" type="email" value="" />\r\n    </div>\r\n    <span class="field-validation-valid help-block" data-valmsg-for="Email" data-valmsg-replace="true"></span>\r\n</div>\r\n<div class="form-group">\r\n    <label class="sr-only" for="Password">Password</label>\r\n    <div class="input-group">\r\n        <span class="input-group-addon"><span class="fa fa-lock fa-fw"></span></span>\r\n        <input aria-label="Passwords must contain at least one number, lowercase and uppercase letters, and be seven or more characters long." class="form-control fnPasswordStrength" data-placement="top" data-toggle="password-tooltip" data-val="true" data-val-required="Password required." id="Password" name="Password" placeholder="Password" type="password" />\r\n    </div>\r\n    <span class="field-validation-valid help-block" data-valmsg-for="Password" data-valmsg-replace="true"></span>\r\n</div>\r\n<div class="form-group">\r\n    <label class="sr-only" for="PasswordConfirmation">Confirm Password</label>\r\n    <div class="input-group">\r\n        <span class="input-group-addon"><span class="fa fa-lock fa-fw"></span></span>\r\n        <input class="form-control" data-val="true" data-val-equalto="Passwords do not match." data-val-equalto-other="*.Password" data-val-required="Password confirmation required." id="PasswordConfirmation" name="PasswordConfirmation" placeholder="Confirm Password" type="password" />\r\n    </div>\r\n    <span class="field-validation-valid help-block" data-valmsg-for="PasswordConfirmation" data-valmsg-replace="true"></span>\r\n</div>\r\n<button class="btn btn-primary btn-lg btn-default actionButton fnStart">Register</button>\r\n<button class="btn btn-primary btn-lg btn-default actionButton fnEnd" style="display: none">Registering...</button></form>                    </div>\r\n                </div>\r\n            </div>\r\n            <div class="modal-footer">\r\n                <button type="button" class="btn btn-secondary" onclick="switchModal(\'#loginModal\')">Already have an account? Sign in here.</button>\r\n                <button type="button" class="btn btn-secondary" onclick="switchModal(\'#forgotPasswordModal\')">Forgot Password?</button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n<div class="modal fade" tabindex="-1" role="dialog" id="loginModal">\r\n    <div class="modal-dialog modal-lg" role="document">\r\n        <div class="modal-content loginModal">\r\n            <div class="modal-header">\r\n                <button class="close" data-dismiss="modal" type="button" aria-label="Close"><span aria-hidden="true">&times;</span></button>\r\n                <h4 class="modal-title">Sign in to MyLegislature</h4>\r\n            </div>\r\n            <div class="modal-body">\r\n                <div class="row fnProgressLoader">\r\n                    <div class="col-xs-12 col-sm-5">\r\n                        <h5 class="text-center sr-only">Sign In With Your Facebook or Google+ Account</h5>\r\n                        <button onclick="window.location = \'/Account/ExternalLogin?provider=Facebook\'" type="button" class="btn btn-facebook btn-lg btn-block oauthButton"><span class="fa fa-facebook-official fa-fw"></span> Sign in<span class="hidden-xs hidden-sm"> with Facebook</span></button>\r\n<button onclick="window.location = \'/Account/ExternalLogin?provider=Google\'" type="button" class="btn btn-google btn-lg btn-block oauthButton"><span class="fa fa-google-plus fa-fw"></span> Sign in<span class="hidden-xs hidden-sm"> with Google</span></button>\r\n                    </div>\r\n                    <div class="col-xs-12 col-sm-7 vDivide">\r\n                        <h5 class="text-center sr-only">Sign In With Your MyLegislature Account</h5>\r\n<form action="/Account/Login?isModal=True" data-ajax="true" data-ajax-begin="inProgress" data-ajax-complete="loginModalFormOnComplete" data-ajax-method="POST" id="loginModalForm" method="post" role="form"><input name="__RequestVerificationToken" type="hidden" value="Ar3mixHvzrkQPy0fpjQ5LkXu6g3Q6lxQ_5mk4_1rZ-fBdRM8_VkPeh1xuSqeOfKYysncZYIeyXk3tiAnzK-0izrMsW01" />\r\n<div class="form-group">\r\n    <label class="sr-only" for="Email">Email</label>\r\n    <div class="input-group">\r\n        <span class="input-group-addon"><span class="fa fa-user fa-fw"></span></span>\r\n        <input class="form-control" data-val="true" data-val-email="Invalid email address." data-val-required="Email address is required." id="Email" name="Email" placeholder="Email Address" type="text" value="" />\r\n    </div>\r\n    <span class="field-validation-valid help-block" data-valmsg-for="Email" data-valmsg-replace="true"></span>\r\n</div>\r\n<div class="form-group passwordField">\r\n    <label class="sr-only" for="Password">Password</label>\r\n    <div class="input-group">\r\n        <span class="input-group-addon"><span class="fa fa-lock fa-fw"></span></span>\r\n        <input class="form-control" data-val="true" data-val-required="Password required." id="Password" name="Password" placeholder="Password" type="password" />\r\n    </div>        \r\n    <span class="field-validation-valid help-block" data-valmsg-for="Password" data-valmsg-replace="true"></span>\r\n</div>\r\n<div class="form-group clearfix">\r\n    <a class="forgotPassword" aria-haspopup="true" data-toggle="modal" data-target="#forgotPasswordModal">Forgot Password?</a>\r\n</div>\r\n<div class="center-block">\r\n    <button type="submit" class="btn btn-primary btn-lg btn-default actionButton fnStart">Sign In</button>\r\n    <button class="btn btn-primary btn-lg btn-default actionButton fnEnd" style="display: none">Signing In...</button>\r\n</div></form>                    </div>\r\n                </div>\r\n            </div>\r\n          <div class="modal-footer">\r\n                <button type="button" class="btn btn-secondary" onclick="switchModal(\'#registrationModal\')">Not Registered? Click here.</button>\r\n                <a class="text-center visible-xs-block" href="/MyLegislature/About">Learn More Here! &raquo;</a>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class="modal fade" tabindex="-1" role="dialog" id="forgotPasswordModal">\r\n    <div class="modal-dialog" role="document">\r\n        <div class="modal-content">\r\n            <div class="modal-header">\r\n            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>\r\n            <h4 class="modal-title">Forgot Password</h4>\r\n            </div>\r\n            <div class="modal-body">\r\n<form action="/Account/ForgotPassword" data-ajax="true" data-ajax-complete="forgotPasswordModalFormOnComplete" data-ajax-method="POST" id="forgotPasswordModalForm" method="post" onsubmit="if($(this).valid()){ $(this).find(&#39;.fnEnd&#39;).show(); $(this).find(&#39;.fnStart&#39;).hide(); }" role="form">    <p><strong>Please enter your email address.</strong> If there is an account associated with that address, a password reset link will be mailed to you.</p>\r\n<input name="__RequestVerificationToken" type="hidden" value="hWzWiedGmFtBB1T6dnHRNsxHX-7foMHcvkrLt1f4O1ZQ7RoPlrX5kcdb2RdlRf0poGOuSfS5jRH8THvRzTlkC_Z98a81" />    <div class="row">\r\n        <div class="form-group clearfix">\r\n            <div class="col-sm-12 col-md-9">\r\n                <label class="sr-only" for="EmailAddress">Email Address</label>\r\n                <input class="form-control" data-val="true" data-val-email="Invalid email address." data-val-required="Email required." id="EmailAddress" name="EmailAddress" placeholder="Email Address" type="text" value="" />\r\n                <span class="field-validation-valid help-block" data-valmsg-for="EmailAddress" data-valmsg-replace="true"></span>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <div class="row">\r\n        <div class="col-xs-12 resetButtons">\r\n            <button type="submit" id="passwordResetButton" class="btn btn-danger fnStart">Reset Password</button>\r\n            <button type="button" class="btn btn-danger fnEnd" style="display: none">Processing...</button>\r\n            <button data-dismiss="modal" type="button" class="btn btn-secondary">Cancel</button>\r\n        </div>\r\n    </div>\r\n</form>            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class="modal fade fnModalStack" tabindex="-1" role="dialog" id="exclusiveFeatureModal">\r\n  <div class="modal-dialog exclusiveModal" role="document">\r\n    <div class="modal-content">\r\n      <div class="modal-header">\r\n        <button class="close" data-dismiss="modal" type="button" aria-label="Close"><span aria-hidden="true">&times;</span></button>\r\n        <h4 class="modal-title">Sign In Required</h4>\r\n      </div>\r\n      <div class="modal-body">\r\n        <div class="container-fluid">\n        \t<div class="row">\n        \t  <div class="col-xs-12">\n        \t    <p class="exclusiveModalContent">This feature is exclusive to users of<span>MyLegislature</span></p>\n        \t  </div>\n        \t  <div class="col-xs-6">\n        \t    <button type="button" onclick="switchModal(\'#loginModal\')" class="btn btn-primary btn-lg btn-block">Sign In</button>\n        \t  </div>\n        \t  <div class="col-xs-6">\n        \t    <button type="button" onclick="switchModal(\'#registrationModal\')" class="btn btn-primary btn-lg btn-block">Register</button>\n        \t  </div>\n        \t</div>\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<div id="locationModal" class="modal fade fnModalRemoveData fnModalStack" tabindex="-1" role="dialog">\r\n    <div class="modal-dialog" role="document">\r\n        <div class="modal-content">\r\n            \r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div id="billModal" class="modal fade fnModalRemoveData modalFixedHeight" tabindex="-1" role="dialog">\r\n    <div class="modal-dialog printPreviewModal" role="document">\r\n        <div class="modal-content">\r\n            \r\n        </div>\r\n    </div>\r\n</div>\r\n<div id="amendmentModal" class="modal fade fnModalRemoveData modalFixedHeight" tabindex="-1" role="dialog">\r\n    <div class="modal-dialog" role="document">\r\n        <div class="modal-content">\r\n            \r\n        </div>\r\n    </div>\r\n</div>\r\n<div id="downloadModal" class="modal fade fnModalRemoveData modalFixedHeight" tabindex="-1" role="dialog">\r\n    <div class="modal-dialog" role="document">\r\n        <div class="modal-content">\r\n            \r\n        </div>\r\n    </div>\r\n</div>\r\n<div class="modal" id="mobileSearch" tabindex="-1" role="dialog">\r\n    <div class="modal-dialog">\r\n        <div class="modal-content">\r\n            <div class="modal-header">\r\n                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>\r\n                <h4 class="modal-title">Search The Legislature</h4>\r\n            </div>\r\n            <div class="modal-body">\r\n                <form action="/Search" class="container" method="get">    <h2 class="sr-only">Search</h2>\r\n    <label class="sr-only" for="fullSearch">Search the Legislature</label>\r\n    <div class="typeahead-container">\r\n        <div class="typeahead-field">\r\n            <div class="input-group typeahead-query input-group-lg">\r\n                <input\r\n                    id="fullSearch"\r\n                    name="SearchTerms"\r\n                    class="searchBox form-control"\r\n                    type="search"\r\n                    value=""\r\n                    data-tt-search-type="Bills, GeneralLaws, SessionLaws, Committees, Legislators, Events, Journals, Reports"\r\n                    data-tt-search-reset="Bills, GeneralLaws, SessionLaws, Committees, Legislators, Events, Journals, Reports"\r\n                    data-tt-url="/TypeAheadSearch"\r\n                    data-tt-branch=""\r\n                    data-tt-limit="7"\r\n                    aria-haspopup="true"\r\n                    aria-autocomplete="list"\r\n                    autocomplete="off"\r\n                    placeholder="Search the Legislature..."/>\r\n                <div class="input-group-btn typeahead-button">\r\n\r\n                    <button type="submit" class="btn btn-primary searchButton" aria-labelledby="fullSearch"><span class="fa fa-search"></span><span class="sr-only">Search</span></button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</form>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div id="badgeModal" class="modal fade fnModalRemoveData fnModalStack" tabindex="-1" role="dialog">\r\n  <div class="modal-dialog" role="document">\r\n    <div class="modal-content">\r\n      \r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<script src="/bundles/bootstrap?v=wMFBIIZ6OsUCe1qOSlRNS_6hGBJgfCE05Vh1GzCppYo1"></script>\r\n<script src="/bundles/common?v=K3Bx8qKJUkbgJ9Jq9qIlnETsVH8MmYA480_kiPYF0d81"></script>\r\n<script src="/bundles/validate?v=S3kD1lOwDYpGFma3pYezc1eM5lZqQPgYj__GN1KhoVo1"></script>\r\n\r\n\r\n\r\n<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->\r\n<script src="/assets/js/ie10-viewport-bug-workaround.js"></script>\r\n<script src="/assets/js/jquery-yammcessible.js"></script>\r\n\r\n\r\n<script>\r\n    $("document").ready(function() {\r\n        $(\'.yamm\').accessibleMegaMenu();\r\n    });\r\n</script>\r\n</body>\r\n</html>\r\n'

Parse the site's contents

Using Regex 101 I tested my regex to parse the content. There are three outputs. One is the end of the url. One is the bill code and one is the bill's title.

In [41]:
res_1 = re.search(b"<td><a href=\"([^\"]*)\">([^<]*)&nbsp;[^\"]*[^=]*[^-]*[^\"]*[^=]*[^t]*[^\"]*[^\"]*\S([^\"]*)",p_1)
output_1 = res_1.group(1).decode('UTF-8')
output_2 = res_1.group(2).decode('UTF-8')
output_3 = res_1.group(3).decode('UTF-8')
print(output_1,output_2,output_3)
/Bills/190/H1449 H.1449 An Act relative to Massachusetts certified emergency telecommunicators
In [42]:
# Print out the old values stored in your sheet 
# Note: The first time you run this code, it will be empty as nothing has yet to be stored in your sheet.
print("%s | %s | %s | %s"%(worksheet.row_values(worksheet.row_count)[1],worksheet.row_values(worksheet.row_count)[2],worksheet.row_values(worksheet.row_count)[3],worksheet.row_values(worksheet.row_count)[2]))
/Bills/190/H1449 | H.1449 | An Act relative to Massachusetts certified emergency telecommunicators | H.1449
In [43]:
# Print the new values pulled from your pages
print("%s | %s | %s | %s"%(now,output_1,output_2,output_3))
2017-10-25 11:21:18.864888 | /Bills/190/H1449 | H.1449 | An Act relative to Massachusetts certified emergency telecommunicators

Post to Twitter and Save to Google

In [45]:
if (res_1 and (worksheet.row_values(worksheet.row_count)[1]) != output_1
          and (worksheet.row_values(worksheet.row_count)[2]) != output_2
          and (worksheet.row_values(worksheet.row_count)[3]) != output_3):
    # same as above but now comparing two values
    
    try:
        # Post to Twitter.
        status = api.PostUpdate('%s %s https://malegislature.gov%s'%(output_2,output_3,output_1))
        print(status.text)
    except TwitterError:
        # Post to Twitter.
        status = api.PostUpdate('Here we go again! %s %s https://malegislature.gov%s'%(output_2,output_3,output_1))
        print(status.text)

    # Save to Google only after Tweeting
    worksheet.append_row([now,output_1,output_2, output_3])