나는 웹 사이트의 모든 데이터를 스크랩하기 위해 크롤러에서 작업 중입니다. 페이지 매김에 아약스를 사용합니다. 페이지 번호의 href
에서 이것을 발견했습니다.dojo에서 ajax 요청을 찾았습니다.
javascript:dojo.publish("showResultsForPageNumber",[{pageNumber:"4",pageSize:"15", linkId:"WC_SearchBasedNavigationResults_pagination_link_4_categoryResults"}])
여기 무슨 일입니까? 나는이 도장을 알지 못한다. 어느 누구도 페이지 스크립트를 포함한 모든 데이터를 스크랩 할 수 있도록 해당 서버 스크립트를 찾을 수 있습니까?
update#1
콘솔에서 나는이가 리디렉션 코드입니다
을 발견했다.
showResultsPage:function(data){
var pageNumber = data['pageNumber'];
var pageSize = data['pageSize'];
pageNumber = dojo.number.parse(pageNumber);
pageSize = dojo.number.parse(pageSize);
setCurrentId(data["linkId"]);
if(!submitRequest()){
return;
}
console.debug(wc.render.getContextById('searchBasedNavigation_context').properties); //line 773
var beginIndex = pageSize * (pageNumber - 1);
cursor_wait();
wc.render.updateContext('searchBasedNavigation_context', {"productBeginIndex": beginIndex,"resultType":"products"});
this.updateHistory();
MessageHelper.hideAndClearMessage();
},
내 업데이트 문제를 살펴보고 좀 도와주세요 수 있을까? – DharanBro
@DharanBro 글쎄, 잘 모르겠다. 디버그를해야한다. 나는'wc.render.updateContext()'가 내용을 검색한다고 가정하지만 이것은 사용자 정의 코드이므로 잘 모른다. – g00glen00b
'wc.render.updateContext()'는 IBM WebSphere Commerce AJAX 호출입니다 (http://www-01.ibm.com/support/knowledgecenter/SSZLC2_7.0.0/com.ibm.commerce.aurora-starterstore.doc 참조)./refs/rsmmadisonwcrupdatecontext_dup.htm? lang = ko) – rasmusm