Skip to content

Instantly share code, notes, and snippets.

View lammoth's full-sized avatar
🏠
Working from home

Francisco Hidalgo lammoth

🏠
Working from home
View GitHub Profile
# -*- coding: utf-8 -*-
import scrapy
import re
from spider.items import SpiderItem
class GHDBSpider(scrapy.Spider):
name = "ghdb"
allowed_domains = ["www.exploit-db.com"]
start_urls = [
@lammoth
lammoth / Create custom stream event handlers in XMPP
Created March 18, 2011 12:17
Create custom stream event handlers in XMPP with SleekXMPP
self.registerHandler(Callback('UserRegister',
MatchXPath('{%s}iq/{%s}user' % (self.default_ns, User.namespace)),
self._handle_user_register
)
)