This file contains hidden or 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.selector import Selector | |
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor | |
from scrapy.contrib.spiders import CrawlSpider, Rule | |
from scrapy.item import Item, Field | |
class DmozAsyncItem(Item): | |
name = Field() | |
url = Field() | |
keyword = Field() |
This file contains hidden or 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
private void Page_Load(object sender, System.EventArgs e) | |
{ | |
if (!this.IsPostBack) | |
// Create a random code and store it in the Session object. | |
this.Session["CaptchaImageText"] = GenerateRandomCode(); | |
else | |
{ | |
// On a postback, check the user input. |