<div class="form-item">
<label for="firstname">Введите фамилию*</label>
<input type="text" name="firstname" id="firstname" required/>
</div>
<div class="form-item">
<label for="lastname">Введите имя*</label>
<input type="text" name="lastname" id="lastname" required />
</div>
<div class="form-item">
<label for="patronymic">Введите Отчество</label>
<input type="text" name="patronymic" id="patronymic"/>
</div>
)'firstname'
>>> import lxml.html as lh
>>>
>>> raw_html = """<div class="form-item">
... <label for="firstname">Введите фамилию*</label>
... <input type="text" name="firstname" id="firstname" required/>
... </div>
... <div class="form-item">
... <label for="lastname">Введите имя*</label>
... <input type="text" name="lastname" id="lastname" required />
... </div>
... <div class="form-item">
... <label for="patronymic">Введите Отчество</label>
... <input type="text" name="patronymic" id="patronymic"/>
... </div>
... """
>>>
>>> html = lh.fromstring(raw_html)
>>> html.xpath('.//label[@for="firstname"]/text()')[0]
'Введите фамилию*'