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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/Server/Ninja.py   Nagstamon(Download)
    def csrf(self):
        opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.Cookie))
        response = opener.open(self.show_login_url)
        soup = BeautifulSoup(response.read())
        return soup.find('input', {'name': 'csrf_token'})['value']

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/Server/Icinga.py   Nagstamon(Download)
            self.json = False
            tacsoup = BeautifulSoup(tacraw)
            self.version = tacsoup.find("a", { "class" : "homepageURL" })
            # only extract version if HTML seemed to be OK
            if self.version.__dict__.has_key("contents"):