In the past year or so fantasy cricket has been getting a lot of traction and with recent deal struck by Dream11 with IPL, more people are playing fantasy cricket than ever, but the problem is lot of people do not make right choices in choosing the team and end up thinking winning is all about luck and nothing else. With our project we want to break that myth by making a model which when given with players predicts the best 11 that will have the most points in the fantasy league. We have gathered statistics of players throughput their career and the model takes in the scores last 5 games a player has played and it tries to predict his score in the next game using a linear model.
Install using
pip3 install -r requirements.txt
To run our project follow these steps
Clone our repo into your system
Change your directory to 'Best11-Fantasycricket' using
cd Best11-Fantasycricket
Linux and MACOS
nano /etc/hosts
on your terminal or open /etc/hosts
on your prefered editor Windows
Open C:\windows\system32\drivers\etc\hosts
in your prefered editor
And add the below line to the the file and save
127.0.0.1 espncricinfo
OR
Open app/fantasy_cricket/scrapyrt_client.py
in your prefered editor
Change line 16
to
self.url = "http://localhost:9080/crawl.json"
Open a tab on your terminal and run
uvicorn app.main:app
scrapyrt
http://localhost:8000/
and voila!! Note:
Visit http://localhost:9080/crawl.json
with the correct queries to see the crawler api
Follow the steps:
docker build -t espncricinfo:latest "." -f docker/espncricinfo/Dockerfile
docker build -t best11:latest "." -f docker/11tastic/Dockerfile
docker-compose -f docker/docker-compose.yaml up
Visit http://localhost:8080/
to see the website in action
Note
Visit http://localhost:9080/crawl.json
with the correct queries to see the crawler api
:warning: Warning! Existing contributors and/or future contributors , re-fork the repo as the commit-history has been rewritten to reduce size of the repo while cloning which makes cloning much faster than before!.
Refer to the Contributing.md file of our repository If you have any suggestions for our project , do raise a issue and we will look into it and if we think it helps our project we will keep it open until its implemented by us or by anyone else If you have any questions regarding our project , you can contact any of the maintainers(info on respective profile pages) or raise a issue and we'll answer you as soon as possible.
Special thanks to scientes for allowing us to use the server to host the website
We would like to thank espncricinfo for their amazing website with daily updates and availabilty to scrape
If you liked our project we would really appreciate you starring this repo.
Thank you