Skip to content

Instantly share code, notes, and snippets.

@dangra
dangra / formtest.py
Created April 15, 2012 04:14
Scrapy FormRequest benchs
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>')