diff --git a/cash25.py b/cash25.py index 0f92f83..f575dcd 100755 --- a/cash25.py +++ b/cash25.py @@ -16,8 +16,8 @@ def get_data(): } # Get web data - r = requests.get(url, headers=header) - dfs = list(pd.read_html(r.text)) + #r = requests.get(url, headers=header) + 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) diff --git a/daily3.py b/daily3.py index cffa5d4..346e131 100755 --- a/daily3.py +++ b/daily3.py @@ -12,8 +12,8 @@ def get_data(): "X-Requested-With": "XMLHttpRequest" } # Get web data - r = requests.get(url, headers=header) - dfs = pd.read_html(r.text) + #r = requests.get(url, headers=header) + 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 = dfs[0] diff --git a/daily4.py b/daily4.py index 641c8d1..6c810a3 100755 --- a/daily4.py +++ b/daily4.py @@ -16,7 +16,7 @@ def get_data(): } # 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) diff --git a/lottopy_pb.py b/lottopy_pb.py index ec87e1d..5887c8a 100755 --- a/lottopy_pb.py +++ b/lottopy_pb.py @@ -15,8 +15,7 @@ def get_data(): "X-Requested-With": "XMLHttpRequest" } # 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) diff --git a/megamil.py b/megamil.py index 67af8a9..ef7ccdd 100755 --- a/megamil.py +++ b/megamil.py @@ -17,8 +17,7 @@ def get_data(): } # 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)