Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
This method should verify if a given URL is a picture that contains boobies.

        def isBoobiesPicture(url): #{{{
    '''This method should verify if a given URL is a picture that contains boobies.'''
    return False
        


src/o/v/OverTheWire-boobiesbot-HEAD/boobiesbot.py   OverTheWire-boobiesbot(Download)
 
from GenericIRCBot import GenericIRCBot, GenericIRCBotFactory, log
from BoobiesClassifier import isBoobiesPicture
 
class BoobiesBot(GenericIRCBot):
 
	    # Check if URL contains boobies, add it if it does
	    if isBoobiesPicture(url) and not self.factory.db_alreadyStored(url):
		GenericIRCBot.privmsg(self, user, channel, "!boobies %s" % url)
    #}}}