pandas issue fix, formatting fixes
This commit is contained in:
1 parent
a8c39310d2
commit
da99a95fd8
7 files changed
+8
-10
No files matched your search
+1
-1
@@ -1,2 +1,2 @@
|
||||
Forecast,Chance
|
||||
6-14-15-16-18-22,31/16100
|
||||
3 - 6 - 14 - 18 - 20 - 25,71/35420
|
||||
|
+1
-1
@@ -1,2 +1,2 @@
|
||||
Forecast,Chance
|
||||
2-3-6,171/250
|
||||
2 - 3 - 6,10379/15000
|
||||
|
+1
-1
@@ -1,2 +1,2 @@
|
||||
Forecast,Chance
|
||||
3-4-8-9,33/625
|
||||
1 - 3 - 4 - 8,137/2500
|
||||
|
+1
-1
@@ -1,2 +1,2 @@
|
||||
Forecast,SB,Chance
|
||||
1-29-32-48-52,[2],149/25989600
|
||||
14 - 17 - 32 - 48 - 52,[10],79/12994800
|
||||
|
+2
-4
@@ -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'
|
||||
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-Requeste, 'PPX', 'Winners WV Only', 'Payout WV Onlyd-With": "XMLHttpRequest"
|
||||
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0",
|
||||
}
|
||||
|
||||
# Get web data
|
||||
r = requests.get(url, headers=header)
|
||||
dfs = list(pd.read_html(r.text))
|
||||
dfs = list(pd.read_html(requests.get(url, headers=header).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)
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
Forecast,MB,Chance
|
||||
3-7-15-38-64,[9],64/151287675
|
||||
1 - 15 - 29 - 38 - 46,[9],2/4584475
|
||||
|
+1
-1
@@ -1,2 +1,2 @@
|
||||
Forecast,PB,Chance
|
||||
6-33-36-37-56,[18],1/1453738
|
||||
19 - 36 - 37 - 47 - 58,[18],5/7492342
|
||||
|
Reference in new issue
Block a user