Giter Club home page Giter Club logo

sports.williamhill.com's Introduction

How to install?

$ git clone --recursive [email protected]:mahendrakalkura/sports.williamhill.com.git
$ cd sports.williamhill.com
$ mkvirtualenv --python=python3 sports.williamhill.com
$ pip install --requirement requirements.txt

How to run?

$ cd sports.williamhill.com
$ workon sports.williamhill.com
$ python manage.py --matches
$ python manage.py --web-sockets $ID

sports.williamhill.com's People

Contributors

mahendrakalkura avatar prasanna-upadhya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sports.williamhill.com's Issues

Wh changed socket url to the new version

Hi, your working script is very useful to me, thank you, but after the launch, it turned out that WilliamHill changed the URL of the socket connection to a new version, v16. The old one is still working, but almost nothing comes along it except for goals and corners. The new version v16 works at the following address wss://scoreboards-push.williamhill.com/diffusion?ty=WB&v=16&ca=8&r=300000&sp=%7B%22src%22%3A%22traf_sb_football%22%7D

Decode websocket/diffusion message

Hi,

The script fails while attempting to process the received websocket message. This is the error I am getting:

File "manage.py", line 106, in on_message
message = bytearray(message, 'utf-8')
TypeError: encoding or errors without a string argument
error from callback <bound method trace..wrap of <main.WebSockets object at 0x0385DBB0>>: encoding or errors without a string argument

Tried with python 2.7.16 and 3.7.3. in windows 10
I am attempting to connect to the 'new' websocket url which was covered in issue 4.
[ wss://scoreboards-push.williamhill.com/diffusion?ty=WB&v=16&ca=8&r=300000&sp=%7B%22src%22%3A%22traf_sb_football%22%7D ]

Any ideas?

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.