예제 #1
0
def main():
    url, results = magic_probe("http://djangoproject.com/")
    print_results("Django", url, results)

    runtest("Django", "https://www.djangoproject.com/", "/admin/")
    runtest("Giantbomb", "http://www.giantbomb.com/", "/admin/")
    runtest("Shinpaku", "http://www.shinpaku.com/")
    runtest("Disus", "http://www.disqus.com/")
    runtest("Mozilla Addons", "https://addons.mozilla.org/")
    runtest("Djangosites", "http://www.djangosites.org/")
    runtest("Pylons", "http://pylonsproject.org/")
    runtest("Flask", "http://flask.pocoo.org/", url_with_slash="/community/")
    runtest("BF3", "http://bf3.immersedcode.org/", url_with_slash="/twitter/", url_without_slash="/page/2")
    runtest("php.net", "http://www.php.net/")
    runtest("Bitbucket", "http://bitbucket.org/", form_url="https://bitbucket.org/account/signup/?plan=5_users")
    runtest("alexgaynor", "http://alexgaynor.net/")
    runtest("reddit", "http://www.reddit.com/", url_without_slash="/r/leagueoflegends")
예제 #2
0
파일: test.py 프로젝트: mitsuhiko/probe
def main():
    url, results = magic_probe('http://djangoproject.com/')
    print_results('Django', url, results)

    runtest('Django', 'https://www.djangoproject.com/',
            '/admin/')
    runtest('Giantbomb', 'http://www.giantbomb.com/',
            '/admin/')
    runtest('Shinpaku', 'http://www.shinpaku.com/')
    runtest('Disus', 'http://www.disqus.com/')
    runtest('Mozilla Addons', 'https://addons.mozilla.org/')
    runtest('Djangosites', 'http://www.djangosites.org/')
    runtest('Pylons', 'http://pylonsproject.org/')
    runtest('Flask', 'http://flask.pocoo.org/',
            url_with_slash='/community/')
    runtest('BF3', 'http://bf3.immersedcode.org/',
            url_with_slash='/twitter/', url_without_slash='/page/2')
    runtest('php.net', 'http://www.php.net/')
    runtest('Bitbucket', 'http://bitbucket.org/',
            form_url='https://bitbucket.org/account/signup/?plan=5_users')
    runtest('alexgaynor', 'http://alexgaynor.net/')
    runtest('reddit', 'http://www.reddit.com/',
            url_without_slash='/r/leagueoflegends')
예제 #3
0
파일: test.py 프로젝트: triplekill/probe
def main():
    url, results = magic_probe('http://djangoproject.com/')
    print_results('Django', url, results)

    runtest('Django', 'https://www.djangoproject.com/', '/admin/')
    runtest('Giantbomb', 'http://www.giantbomb.com/', '/admin/')
    runtest('Shinpaku', 'http://www.shinpaku.com/')
    runtest('Disus', 'http://www.disqus.com/')
    runtest('Mozilla Addons', 'https://addons.mozilla.org/')
    runtest('Djangosites', 'http://www.djangosites.org/')
    runtest('Pylons', 'http://pylonsproject.org/')
    runtest('Flask', 'http://flask.pocoo.org/', url_with_slash='/community/')
    runtest('BF3',
            'http://bf3.immersedcode.org/',
            url_with_slash='/twitter/',
            url_without_slash='/page/2')
    runtest('php.net', 'http://www.php.net/')
    runtest('Bitbucket',
            'http://bitbucket.org/',
            form_url='https://bitbucket.org/account/signup/?plan=5_users')
    runtest('alexgaynor', 'http://alexgaynor.net/')
    runtest('reddit',
            'http://www.reddit.com/',
            url_without_slash='/r/leagueoflegends')
예제 #4
0
파일: webprobe.py 프로젝트: mitsuhiko/probe
def probe_url(url):
    url, results = libprobe.magic_probe(url, timeout=10)
    return [x for x in results if x.score > 0.3]
예제 #5
0
def probe_url(url):
    url, results = libprobe.magic_probe(url, timeout=10)
    return [x for x in results if x.score > 0.3]