diff --git a/c25_ans.csv b/c25_ans.csv index 0f656c1..02519a6 100644 --- a/c25_ans.csv +++ b/c25_ans.csv @@ -1,2 +1,2 @@ Forecast,Chance -3 - 6 - 14 - 18 - 20 - 25,71/35420 +9 - 12 - 13 - 19 - 20 - 22,12/6325 diff --git a/cash25.py b/cash25.py index aa1b872..0fad753 100755 --- a/cash25.py +++ b/cash25.py @@ -3,6 +3,7 @@ from fractions import Fraction as frac import pandas as pd import requests from collections import Counter +from io import StringIO import csv def get_data(): @@ -14,9 +15,9 @@ def get_data(): "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" } - + r = requests.get(url, headers=header) # Get web data - dfs = list(pd.read_html(requests.get(url, headers=header).text)) + dfs = list(pd.read_html(StringIO(r.text))) pd.set_option('display.max_rows', None) # Specifies no max rows, otherwise only shows 10 records df = pd.concat([dfs[0], salvaged], ignore_index=True) diff --git a/d3_ans.csv b/d3_ans.csv index a77cda9..350d9bb 100644 --- a/d3_ans.csv +++ b/d3_ans.csv @@ -1,2 +1,2 @@ Forecast,Chance -2 - 3 - 6,10379/15000 +0 - 7 - 8,163/7500 diff --git a/d4_ans.csv b/d4_ans.csv index 97d0c53..b7c7ffb 100644 --- a/d4_ans.csv +++ b/d4_ans.csv @@ -1,2 +1,2 @@ Forecast,Chance -1 - 3 - 4 - 8,137/2500 +2 - 4 - 7 - 9,107/2000 diff --git a/daily3.py b/daily3.py index 4d79076..cd0f251 100755 --- a/daily3.py +++ b/daily3.py @@ -3,19 +3,24 @@ from fractions import Fraction as frac import pandas as pd import requests from collections import Counter +from io import StringIO import csv def get_data(): + df_old = pd.read_excel('./excel_lotto_records/cash25.xlsx') + salvaged = df_old[['Date', 'Numbers']] + 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" } + r = requests.get(url, headers=header) # Get web data - dfs = list(pd.read_html(requests.get(url, headers=header).text)) + dfs = list(pd.read_html(StringIO(r.text))) pd.set_option('display.max_rows', None) # Specifies no max rows, otherwise only shows 10 records - df = dfs[0] + df = pd.concat([dfs[0], salvaged], ignore_index=True) df2 = df[['Date', 'Numbers']] date = list(df2['Date']) nums = list(df2['Numbers'].astype('str')) diff --git a/daily4.py b/daily4.py index 058df7f..4175145 100755 --- a/daily4.py +++ b/daily4.py @@ -3,6 +3,7 @@ from fractions import Fraction as frac import pandas as pd import requests from collections import Counter +from io import StringIO import csv def get_data(): @@ -14,8 +15,9 @@ def get_data(): "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" } + r = requests.get(url, headers=header) # Get web data - dfs = list(pd.read_html(requests.get(url, headers=header).text)) + dfs = list(pd.read_html(StringIO(r.text))) pd.set_option('display.max_rows', None) # Specifies no max rows, otherwise only shows 10 records df = pd.concat([dfs[0], salvaged], ignore_index=True) diff --git a/la_ans.csv b/la_ans.csv index 6dc7685..a3d678b 100644 --- a/la_ans.csv +++ b/la_ans.csv @@ -1,2 +1,2 @@ Forecast,SB,Chance -14 - 17 - 32 - 48 - 52,[10],79/12994800 +3 - 11 - 15 - 38 - 51,[9],43/6497400 diff --git a/lotto_america.py b/lotto_america.py index 5ea7288..eea666a 100755 --- a/lotto_america.py +++ b/lotto_america.py @@ -1,9 +1,9 @@ # WVLottopy: Matteo DiBiagio -#from django_lottopy.lottopy_site.lottopy.lottopy_web_edition.megamil import Forecast from fractions import Fraction as frac import pandas as pd import requests from collections import Counter +from io import StringIO import csv def get_data(): @@ -14,9 +14,9 @@ def get_data(): header = { "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0", } - + r = requests.get(url, headers=header) # Get web data - dfs = list(pd.read_html(requests.get(url, headers=header).text)) + dfs = list(pd.read_html(StringIO(r.text))) pd.set_option('display.max_rows', None) # Specifies no max rows, otherwise only shows 10 records df = pd.concat([dfs[0], salvaged], ignore_index=True) diff --git a/lottopy_pb.py b/lottopy_pb.py index 5887c8a..34183c1 100755 --- a/lottopy_pb.py +++ b/lottopy_pb.py @@ -3,6 +3,7 @@ from fractions import Fraction as frac import pandas as pd import requests from collections import Counter +from io import StringIO import csv def get_data(): @@ -14,8 +15,9 @@ def get_data(): "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" } + r = requests.get(url, headers=header) # Get web data - dfs = list(pd.read_html(requests.get(url, headers=header).text)) + dfs = list(pd.read_html(StringIO(r.text))) pd.set_option('display.max_rows', None) # Specifies no max rows, otherwise only shows 10 records df = pd.concat([dfs[0], salvaged], ignore_index=True) diff --git a/megamil.py b/megamil.py index ef7ccdd..df56aad 100755 --- a/megamil.py +++ b/megamil.py @@ -3,6 +3,7 @@ from fractions import Fraction as frac import pandas as pd import requests from collections import Counter +from io import StringIO import csv @@ -15,9 +16,9 @@ def get_data(): "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" } - + r = requests.get(url, headers=header) # Get web data - dfs = list(pd.read_html(requests.get(url, headers=header).text)) + dfs = list(pd.read_html(StringIO(r.text))) pd.set_option('display.max_rows', None) # Specifies no max rows, otherwise only shows 10 records df = pd.concat([dfs[0], salvaged], ignore_index=True) diff --git a/mm_ans.csv b/mm_ans.csv index e191b98..d9f843a 100644 --- a/mm_ans.csv +++ b/mm_ans.csv @@ -1,2 +1,2 @@ Forecast,MB,Chance -1 - 15 - 29 - 38 - 46,[9],2/4584475 +3 - 26 - 33 - 61 - 66,[7],43/100858450 diff --git a/pb_ans.csv b/pb_ans.csv index e9a8a4d..51e5891 100644 --- a/pb_ans.csv +++ b/pb_ans.csv @@ -1,2 +1,2 @@ Forecast,PB,Chance -19 - 36 - 37 - 47 - 58,[18],5/7492342 +19 - 24 - 27 - 33 - 64,[20],191/292201338