Documentation

Lotérica

Script responsável por exibir conteúdos da Mega-sena e da Quina.

Fontes p/ dados:

  • https://g1.globo.com/loterias/quina.ghtml
  • https://g1.globo.com/loterias/megasena.ghtml

Obs.: esse script tem cache de 1 hora, o endereço da fonte:


Exemplo:

<?xml version="1.0"?>
<root>
    <info>
        <title>Mega-Sena</title>
        <concourse>2340</concourse>
        <date>
            <created>2021-02-03 16:43:42</created>
            <concourse>2021-01-30</concourse>
        </date>
    </info>
    <awards>
        <status>
            <accumulated>true</accumulated>
            <phrase>ACUMULADO: R$ 19.883.105,32</phrase>
        </status>
        <current>
            <sena>
                <winners>Acumulou!</winners>
                <award>-</award>
            </sena>
            <quina>
                <winners>24</winners>
                <award>R$ 93.309,21</award>
            </quina>
            <quadra>
                <winners>2408</winners>
                <award>R$ 1.328,56</award>
            </quadra>
        </current>
        <next>
            <date>03/02</date>
            <award>R$ 25.000.000,00</award>
        </next>
    </awards>
    <numbers>
        <number>16</number>
        <number>21</number>
        <number>28</number>
        <number>41</number>
        <number>49</number>
        <number>51</number>
    </numbers>
</root>
<?xml version="1.0"?>
<root>
    <info>
        <title>Quina</title>
        <concourse>5426</concourse>
        <date>
            <created>2021-02-03 15:02:58</created>
            <concourse>2020-11-26</concourse>
        </date>
    </info>
    <awards>
        <status>
            <accumulated>true</accumulated>
            <phrase>ACUMULADO: R$ 4.252.322,7</phrase>
        </status>
        <current>
            <quina>
                <winners>Acumulou!</winners>
                <award>-</award>
            </quina>
            <quadra>
                <winners>79</winners>
                <award>R$ 6.677,06</award>
            </quadra>
            <terno>
                <winners>5719</winners>
                <award>R$ 138,69</award>
            </terno>
        </current>
        <next>
            <date>27/11</date>
            <award>R$ 5.300.000,00</award>
        </next>
    </awards>
    <numbers>
        <number>6</number>
        <number>33</number>
        <number>36</number>
        <number>37</number>
        <number>78</number>
    </numbers>
</root>