1
하나의 사용자 이름과 암호 및 인증 코드로 작동 할 수 있습니다.반복적으로 양식 제출
def start_requests(self):
yield request(indexUrl, headers=headers, callback=self.downloadPic)
def downloadPic(self, response):
# get cookies from the response and add it to the headers
yield request(picUrl, headers=headers, callback=self.handlePic)
def handlePic(self, response):
# extract text from the picture
# form data include username, password and verification code
yield FormRequest(postUrl, formdata, headers=headers, callback=self.parse)
것은 이제 우리가 지방에서 사용자 이름과 암호를 많이 있다고 가정 해 봅시다 : 여기
는 논리이다. 그리고 나는이 logoc을 여러 번 반복하기를 원합니다. formdata에서 사용자 이름과 암호를 변경하십시오.for 루프를 사용하여 모든 사용자 이름과 암호를 얻은 다음 새 요청을 내 보려고했지만 작동하지 않습니다.
어떤 아이디어가 있습니까?