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

All Samples(7)  |  Call(4)  |  Derive(0)  |  Import(3)

src/n/a/nashdevbot-HEAD/modules/xkcd.py   nashdevbot(Download)
import random
from willie.modules.search import google_search
from willie.modules.url import find_title
import urllib2
from lxml import etree
                    pass
                website = google_search("site:xkcd.com "+ query)
                chkForum = re.match(re.compile(r'.*?([0-9].*?):.*'), find_title(website)) # regex for comic specific forum threads
                if (chkForum):
                    website = "http://xkcd.com/" + chkForum.groups()[0].lstrip('0')
    if website: # format and say result
        website += ' [' + find_title(website)[6:] + ']'

src/w/i/willie-4.3.0/willie/modules/meetbot.py   willie(Download)
import os
from willie.web import quote
from willie.modules.url import find_title
from willie.module import example, commands, rule, priority
from willie.tools import Ddict, Nick
        link = "http://" + link
    try:
        title = find_title(link)
    except:
        title = ''

src/w/i/willie-HEAD/willie/modules/meetbot.py   willie(Download)
import os
from willie.web import quote
from willie.modules.url import find_title
from willie.module import example, commands, rule, priority
from willie.tools import Ddict, Nick
        link = "http://" + link
    try:
        title = find_title(link)
    except:
        title = ''