Mysql Django从数据库的html表中获取数据

Mysql Django从数据库的html表中获取数据,mysql,django,Mysql,Django,我需要使用django框架获取数据,并写入数据库。使用javascript将行添加到表中。例如: <table id="tbl" > <thead > <tr> <th>Name</th> <th>Phone</th> <th>Sarlay</th> <th>P1</th>

我需要使用django框架获取数据,并写入数据库。使用javascript将行添加到表中。例如:

<table id="tbl" >
<thead >
    <tr>
        <th>Name</th>        
        <th>Phone</th>
        <th>Sarlay</th>
        <th>P1</th>
        <th>P2</th>
    </tr>
</thead>
<tbody class="scrollContent">
</tbody>
</table>
<button type="button" onclick="Add_Row()" class="btn btn-primary">Add</button> 
<script >
function Add_Row()
{
document.getElementById("scrolltable").insertRow(-1).innerHTML = '    <tr><td><input class="form-control" name="inp" type="text" value=""/></td><td><input class="form-control" name="inp" type="text" value=""/></td><td><input class="form-control" name="inp" type="text" value=""/></td><td><input class="form-control" name="inp" type="text" value=""/></td><td><input class="form-control" name="inp" type="text" value=""/></td></tr>';
}
</script>

名称
电话
萨雷
P1
P2
添加
函数Add_Row()
{
document.getElementById(“scrolltable”).insertRow(-1).innerHTML='';
}
谁知道如何从这个表中获取数据


另外,我试图使用BeautifulSoup来解决这个问题,但它对我没有帮助。

您不应该在没有所有者许可的情况下解析网站上的数据


一种方法是使用浏览器的“开发人员工具”或检查该页面的源代码,找出js填充这些表的位置。如果幸运的话,您可能会以某种合理的格式(json或xml)找到源代码。

以它目前的形式,这是接近票数的一根避雷针。更新问题以显示您已尝试的内容。BeautifulSoup无法工作,因为您似乎正在使用javascripts生成页面。这与Django或BeautifulSoup无关