python - 用mechanize选择div类

时间:2017-01-16 16:03:00

标签: python python-2.7 mechanize

我正在尝试选择搜索栏并搜索名称。我试过了

for f in br.forms():
    print f

看看有什么形式,但它没有显示任何形式。关于我想要选择的内容的页面来源是:

<div class="inputOuter widget-search-outer employee_list-search " style=";width:470px;" onclick="">
   <div class="inputInner" style="">
      <input   onkeyup="SearchLimeList(event, 'https://crmcampaignmg.limelightcrm.com/admin/ajax_min.php?BUTTON_VALUE=employee_list&PAGE_ID=https%3A%2F%2Fcrmcampaignmg.limelightcrm.com%2Fadmin%2Fajax_min.php&LIST_NAME=employee_list&SQL_HASH=8e350ed23d50ac194cd486daaf8cab16&action=admin_admin.php_min_ajax_RenderEmployeeAccounts', 'employee_list', this, null);"  onclick=""  type="text" class="info-input search-ahead" style="" id="list_search_id_employee_list" name="list_search_name_employee_list" title="Search by Id or a list of Ids, Name, Description and more" value="" maxlength="">
   </div>
   <div class="widget-search-arrow " style="" onclick=""></div>
   <div class="widget-search-magnifier " style="" onclick="SearchLimeList(event, 'https://crmcampaignmg.limelightcrm.com/admin/ajax_min.php?BUTTON_VALUE=employee_list&PAGE_ID=https%3A%2F%2Fcrmcampaignmg.limelightcrm.com%2Fadmin%2Fajax_min.php&LIST_NAME=employee_list&SQL_HASH=8e350ed23d50ac194cd486daaf8cab16&action=admin_admin.php_min_ajax_RenderEmployeeAccounts', 'employee_list', this, null);"></div>
   <div id="list_search_id_employee_list_results" class="widget-search-drilldown" style="">
      <div class="widget-search-content"></div>
   </div>
</div>

0 个答案:

没有答案