pandas issue fix, formatting fixes

This commit is contained in:
xi-pinmping committed 2023-05-21 23:45:15 -04:00
1 parent a8c39310d2
commit da99a95fd8
7 files changed
+8 -10

No files matched your search

+1 -1
View File
@@ -1,2 +1,2 @@
Forecast,Chance Forecast,Chance
6-14-15-16-18-22,31/16100 3 - 6 - 14 - 18 - 20 - 25,71/35420
1 Forecast Chance
2 6-14-15-16-18-22 3 - 6 - 14 - 18 - 20 - 25 31/16100 71/35420
+1 -1
View File
@@ -1,2 +1,2 @@
Forecast,Chance Forecast,Chance
2-3-6,171/250 2 - 3 - 6,10379/15000
1 Forecast Chance
2 2-3-6 2 - 3 - 6 171/250 10379/15000
+1 -1
View File
@@ -1,2 +1,2 @@
Forecast,Chance Forecast,Chance
3-4-8-9,33/625 1 - 3 - 4 - 8,137/2500
1 Forecast Chance
2 3-4-8-9 1 - 3 - 4 - 8 33/625 137/2500
+1 -1
View File
@@ -1,2 +1,2 @@
Forecast,SB,Chance Forecast,SB,Chance
1-29-32-48-52,[2],149/25989600 14 - 17 - 32 - 48 - 52,[10],79/12994800
1 Forecast SB Chance
2 1-29-32-48-52 14 - 17 - 32 - 48 - 52 [2] [10] 149/25989600 79/12994800
+2 -4
View File
@@ -12,13 +12,11 @@ def get_data():
url = 'https://wvlottery.com/draw-games/lotto-america/?game-analyze=lotto-america&what-to-search=historysearch&date-range=-1' url = 'https://wvlottery.com/draw-games/lotto-america/?game-analyze=lotto-america&what-to-search=historysearch&date-range=-1'
header = { header = {
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36", "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0",
"X-Requeste, 'PPX', 'Winners WV Only', 'Payout WV Onlyd-With": "XMLHttpRequest"
} }
# Get web data # Get web data
r = requests.get(url, headers=header) dfs = list(pd.read_html(requests.get(url, headers=header).text))
dfs = list(pd.read_html(r.text))
pd.set_option('display.max_rows', None) pd.set_option('display.max_rows', None)
# Specifies no max rows, otherwise only shows 10 records # Specifies no max rows, otherwise only shows 10 records
df = pd.concat([dfs[0], salvaged], ignore_index=True) df = pd.concat([dfs[0], salvaged], ignore_index=True)
+1 -1
View File
@@ -1,2 +1,2 @@
Forecast,MB,Chance Forecast,MB,Chance
3-7-15-38-64,[9],64/151287675 1 - 15 - 29 - 38 - 46,[9],2/4584475
1 Forecast MB Chance
2 3-7-15-38-64 1 - 15 - 29 - 38 - 46 [9] 64/151287675 2/4584475
+1 -1
View File
@@ -1,2 +1,2 @@
Forecast,PB,Chance Forecast,PB,Chance
6-33-36-37-56,[18],1/1453738 19 - 36 - 37 - 47 - 58,[18],5/7492342
1 Forecast PB Chance
2 6-33-36-37-56 19 - 36 - 37 - 47 - 58 [18] 1/1453738 5/7492342