How do I get the input information with beautifullsoup (PYTHON)?

0

I need to scrap a website, already log in and perform a search but the information comes out this way:

and its html code is:

<div class="controls">
<input id="sumaAsegurada_formatted" name="sumaAsegurada_formatted" size="17" type="tel" class="input-large populateByInsp currency " maxlength="17" data-rel="tooltip" data-original-title="Este valor puede ser incrementado o disminuido en un 10%" tabindex="19">
</div>

Already with that solution would do the others. Thanks

    
asked by Diego Lopez 22.11.2017 в 17:24
source

1 answer

0

you can get it with the name of the input, with the class or with an id

 <script type="text/javascript">
$(document).ready(function()
    {
    $("#boton01").click(function () {
    //saco el valor accediendo a un input de tipo text y name = nombre
    alert($('input:text[name=nombre]').val());
    //saco el valor accediendo al id del input = nombre
    alert($("#nombre").val());
    //saco el valor accediendo al class del input = nombre   
    alert($(".nombre").val());
    });
});
</script>

the buttons:

<input type="text" name="nombre" id="nombre" class="nombre" value="">
<input type="button" name="boton01" id="boton01" value="Sacar el valor del input text">
    
answered by 22.11.2017 в 18:29