This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scrapy.http.response.text import TextResponse | |
# import form | |
import lxmlform | |
import lxmlform_noxmlns | |
l = ['<html><body><form><select name="hugeselect">'] | |
for i in range(1000): | |
l.append('<option value="%s">%s</option>' %(i,i)) | |
l.append('<option selected="selected" value="selected">selected</option>') |