Added support for historical numbers dating back to 1992 in some cases

This commit is contained in:
lottopy committed 2022-06-29 16:13:44 -04:00
1 parent 94a108b248
commit 26f84a9a7b
20 files changed
+36 -18

No files matched your search

+3 -2
View File
@@ -4,9 +4,10 @@ import pandas as pd
import requests
from collections import Counter
import csv
from datetime import datetime
def get_data():
url = 'https://wvlottery.com/draw-games/daily-3/?game-analyze=daily-3&what-to-search=historysearch&date-range=1'
url = 'https://wvlottery.com/draw-games/daily-3/?game-analyze=daily-3&what-to-search=historysearch&date-range=-1'
header = {
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36",
"X-Requested-With": "XMLHttpRequest"
@@ -38,7 +39,7 @@ for n in range(0, 10):
sorted_nums = sorted(likely_nums)
total_freq = sum(frequency)
Chance = frac(total_freq, 1000) # Chance = number call freq / all possible numbers i.e. 1000
Chance = frac(total_freq, 15000) # Chance = number call freq / all possible numbers i.e. 1000
Winning_Numbers = str("-".join(sorted_nums))
#print(f"Likely numbers are . . . {Winning_Numbers} \n"