Coder Social home page Coder Social logo

dota2_data_analyse's People

Contributors

xiaowei0828 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

dota2_data_analyse's Issues

博主,room_info的算法不对吧?

这部分 auth的算法是怎样的? 我看之前是1231,现在好像变了

    def get_room_info(self, room_id):
        auth_str = '79420'
        auth_md5 = hashlib.md5(auth_str.encode('utf-8')).hexdigest()
        time_str = str(int(time.time()))
        auth_str = 'room/' + room_id + '?aid=android&client_sys=android&ne=1&support_pwd=0&time=' + time_str
        auth_md5 = hashlib.md5(auth_str.encode('utf-8')).hexdigest()
        params = '?aid=android&client_sys=android&ne=1&support_pwd=1&time=' + time_str
        #urllib.parse.urlencode({'aid' : 'android',
        #                                 'client_sys' : 'android',
        #                                 'time' : time_str,
        #                                 'auth' : auth_md5})
        url = DouyuApi.__douyu_api_host +  'room/' + room_id + params
        result = urllib.request.urlopen(url).read().decode()
        result_dict = json.loads(result)
        if result_dict['error'] == 0:
            return result['data']

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.