Coder Social home page Coder Social logo

prizesremaining's Introduction

Prizes Remaining

Code that archives and analyes data on the Michigan Lottery.

Motivation

1. Creatively nurture Nolan's gambling addiction
2. Analyze data collected to make decisions about what games are advantageous for players
3. Supplement data from existing websites that already do #2
4. Make cool graphs

Roadmap

1. Script that merely pulls a single game's statistics from the michiganlottery.com
2. Script that pulls all the active scratch off games and stores
3. Process that does #1 for all games returned by #2 but every day (or several times a day? - every time they update, really)
4. A plan for how to display data - Some ideas include,
    - time based "burn" chart of a ticket's prize denominations
    - initial odds of each denomination compared to current odds
    - estimated tickets remaining
5. Process that continually monitors all active games offered and notifies us of new games.
6. Tooling that monitors competitors websites for the same information we collect 

Developer Notes

Online data sources

  1. Prizes remaining
  2. Search the map
  3. Odds / price / game number
    • Click on image in #1
  4. External sites

Docker

Remove all stopped containers

docker rm $(docker ps --filter status=exited -q)

Use the --rm to delete the container after it exits.

docker build -t scrape .
docker run --rm scrape

Use this to keep the container running and start a shell inside.

docker run -it --entrypoint=/bin/bash scrape

Note that after pushing a new image to the AWS ECR the task in AWS ECS will automatically use the latest image.

WSL 2 Environment

To get started developing in WSL2, do the following

sudo apt install python3.8

Then, run,

pip install -r requirements.txt

Note: pip should be installed with python, but if it isn't give "pip install" a Google.

TODO: X server, Windows X server setup in Windows Defender, etc.

https://www.gregbrisebois.com/posts/chromedriver-in-wsl2/ https://stackoverflow.com/questions/61110603/how-to-set-up-working-x11-forwarding-on-wsl2 https://github.com/cascadium/wsl-windows-toolbar-launcher#firewall-rules

AWS ECS

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.