stefanobg / winTheLottery

Python script to read the most common APIs from Brazil's lotteries and return insights to make your bet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Win the Lottery! Open Source Love

Python script to read the most common APIs from Brazil's lotteries and return insights to make your bet.

🔥 Motivation

In Brazil, we have several lottery games that use the same drawable mechanism. Whether it's luck or not, everyone still doubts. So it's time to understand the overall patterns and start earning some money! ;)

🎲 How it works?

Fortunatelly we have an Open API with all the results, since it was born. You can found it here and see for yourself!

Basically, the script collects all the raffles already made and makes a conglomerate of information to analyze what is common in the results and identify the patterns in order to make a more accurate bet for you!

🖥 Running the script

1. First you need to be sure that you have Python 2.7.x or more installed.

2. After that, you need to install PIP to manage your packages.

3. Now that you have both Python and PIP, you can download the repositorie to the folder you want by opening your terminal and typing:

$ git clone https://github.com/stefanobg/winTheLottery/



4. Once you have it cloned, go there:

$ cd winTheLottery



5. Before running winTheLottery.py you need to refresh the Token inside it. So, go to the API page, by clicking here and copy the authorized Token:

6. Now, paste it here, and keep in mind that you'll need to do it many times to not loose your access:


7. With terminal open on the correct folder type:

$ python winTheLottery



⚡️ Modifying the output

Open winTheLottery.pyand insert some or all of these lines to collect different data to improve the accuracy:

  from requestAPI import lotteryAPI

  goldenPot = lotteryAPI(False, 'Updated Token Here')

  goldenPot.duplasena()
  goldenPot.lotofacil()
  goldenPot.megasena()
  goldenPot.lotomania()
  goldenPot.quina()

  for i in xrange(2):
    print goldenPot.makeABet(6, 60)



If you want to print all the raffles you need to insert this line after creating the lotteryAPI and before making a request:

  lotteryAPI.enablePrint()
  lotteryAPI.disablePrint()



Making how many bets you want, changing N to the desired amount:

  for i in xrange(N):
    print goldenPot.makeABet(6, 60)



💬 Contributor

This script was created and is being maintained by Stéfano Girardelli.

About

Python script to read the most common APIs from Brazil's lotteries and return insights to make your bet.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%