Git Product home page Git Product logo

py3finger's Introduction

Py3finger

是一个HTTP指纹识别类库

使用方式1:

    from py3finger import PyFinger
    if __name__ == "__main__":
        pyfinger = PyFinger()
        print(pyfinger.new_from_url('https://www.runoob.com/'))

使用方式2:

    from py3finger import PyFinger
    import requests
    if __name__ == "__main__":
        pyfinger = PyFinger()
        req = requests.get('https://www.runoob.com/')
        print(pyfinger.new_from_response(req))

使用方式3:

    from py3finger import PyFinger
    html = '<!DOCTYPE html><html><head><meta charset="utf-8"><title>菜鸟教程(runoob.com)</title></head><body><h1>我的第一个标题</h1><p>我的第一个段落。</p></body><script src="/wp-content/themes/runoob/assets/js/main.min.js?v=1.191"></script></html>'
    header = {'Server': 'Tengine', 'Content-Type': 'text/html; charset=UTF-8', 'Content-Length': '189777', 'Connection': 'keep-alive', 'Date': 'Sun, 18 Jul 2021 08:25:20 GMT', 'Vary': 'Accept-Encoding', 'Link': '<http://www.runoob.com/wp-json/>; rel="https://api.w.org/"', 'Content-Encoding': 'gzip', 'Ali-Swift-Global-Savetime': '1626596720', 'Via': 'cache31.l2hk71[0,11,200-0,H], cache11.l2hk71[12,0], cache4.hk6[0,1,200-0,H], cache8.hk6[3,0]', 'Age': '11468', 'X-Cache': 'HIT TCP_HIT dirn:9:355117788', 'X-Swift-SaveTime': 'Sun, 18 Jul 2021 09:59:53 GMT', 'X-Swift-CacheTime': '80727', 'Timing-Allow-Origin': '*', 'EagleId': '2ff6108c16266081883755579e'}
    if __name__ == "__main__":
        pyfinger = PyFinger()
        print(pyfinger.new_from_html(html,header))

Image

py3finger's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.