Skip to content
Script that scrapes all the games of the lottery from the website and shows how many times a number was chosen
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


The most famous lottery in Brazil is the Mega Sena. You need to guess right 6 among 60 numbers (1 ~ 60).

This script scrapes all the games from first edition (03/11/1996) to the most current, saves to a .txt file and then shows how many times the numbers were chosen.

First time using BeautifulSoup and requests so I wanted to see how it was.

The file sena.txt in this repository has 2005 games saved (01/17/2018).

You can’t perform that action at this time.