Переход на следующую страницу осуществляется через JavaScript
__doPostBack('pdg','start_pos:2000')" class="pdg_page_num" title="На 5-ю страницу">
Другие настройки, например число данных на странице примерно также
<td class="pdg_count" onclick="__doPostBack('pdg','page_size:10')">10</td>
сама функция выглядит так
function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); } }
Я делаю парсинг, хочу программно через lxml передать данные в форму, чтобы оторажалось по 500 элементов, и затем также менять номер страницы, свойство start_pos
from urllib2 import Request, urlopen from lxml.html import parse, submit_form from pprint import pprint import lxml url ="http://unro.minjust.ru/NKOs.aspx" page = urlopen(url) html = page.read(); doc = lxml.html.document_fromstring(html) form = doc.forms[0] pprint(form.form_values()) form.fields['__EVENTTARGET'] = 'pdg' form.fields['__EVENTARGUMENT'] = 'start_pos:%s' %15000 form.fields['__EVENTARGUMENT'] = 'page_size:%s' %500 response = form.submit() #or submit_form print response form = doc.forms[0] pprint(form.form_values())
он ругается на KeyError: “No input element with the name ‘__EVENTTARGET’”, при этом в JavsScript функции этому аргументу устанавливается значение
Как правильно передать эти данные в форму через lxml , тк через Grab почему то возникает тайм-аут где-то на 17 запросе
Я пробовал сделать это через POST requests, но проблема в том что там используется волшебное поле валидейшн, которое потом проверяет соответствие переданных параметров
import requests s = requests.Session() p = s.get('http://unro.minjust.ru/NKOs.aspx') dic = {'selected_pdg_items' :'', 'pdg_pdg_sort_col' : 'full_name', 'pdg_pdg_sort_ord' : 'ASC', 'pdg_pdg_record_count' : '402820', 'hd_frame_id' : 'Unknown', 'ctl02_dummy_calendar_past_date':'False', '__VIEWSTATE' : '/wEPDwUKMjA1Njc0MTE4OQ9kFgJmD2QWAgIBD2QWBAIDD2QWBAIBDxBkDxYxZgIBAgICAwIEAgUCBgIHAggCCQIKAgsCDAINAg4CDwIQAhECEgITAhQCFQIWAhcCGAIZAhoCGwIcAh0CHgIfAiACIQI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ODDQKvtq2WCwKD3fb5AwKM7tq6DwLJjuKXBAKlpPSMDgKD3ab5AwKKr4uDDQKe8ozWBQKx+fDNBQKD3a75AwKKr9uDDQKe8oDWBQKx+cjNBQKe8tDWBQLJjuaXBAKR1IGVBAKCxMyjBcLp49+MMnCe5jRQcwJ5AlHvhK4tLWrrp2WyfIS5U9zs', 'mode':"", 'affiliate':"", 'err_msg':"", 'filter_org_name':"", 'filter_opf':"", 'filter_status':"", 'filter_region':"", 'filter_reg_num':"", 'filter_ogrn':""} dic1 = {'selected_pdg_items' :'', 'pdg_pdg_sort_col' : 'full_name', 'pdg_pdg_sort_ord' : 'ASC', 'pdg_pdg_record_count' : '402820', 'hd_frame_id' : 'Unknown', 'ctl02_dummy_calendar_past_date':'False', '__EVENTTARGET': 'pdg', '__EVENTARGUMENT' : 'page_size:500', 'mode':"", 'affiliate':"", 'err_msg':"", 'filter_org_name':"", 'filter_opf':"", 'filter_status':"", 'filter_region':"", 'filter_reg_num':"", 'filter_ogrn':""} r = s.post('http://unro.minjust.ru/NKOs.aspx',dic )