Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
from flask import Flask, render_template, redirect, url_for, request, session, send_file
|
2 |
-
from cookie import fetch_new_cookies
|
3 |
from bs4 import BeautifulSoup
|
4 |
import pandas as pd
|
5 |
import threading
|
@@ -15,13 +15,14 @@ app.secret_key = 'the_data_of_KV'
|
|
15 |
student_data = []
|
16 |
url = "https://epay.unionbankofindia.co.in/kvchallan/welcome.aspx"
|
17 |
|
18 |
-
cookies = []
|
19 |
-
fetch_cookie = fetch_new_cookies()
|
20 |
-
if fetch_cookie:
|
21 |
-
|
22 |
-
else:
|
23 |
-
|
24 |
-
cookie = cookies[0] if cookies else None
|
|
|
25 |
|
26 |
headers = {
|
27 |
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
|
|
|
1 |
from flask import Flask, render_template, redirect, url_for, request, session, send_file
|
2 |
+
# from cookie import fetch_new_cookies
|
3 |
from bs4 import BeautifulSoup
|
4 |
import pandas as pd
|
5 |
import threading
|
|
|
15 |
student_data = []
|
16 |
url = "https://epay.unionbankofindia.co.in/kvchallan/welcome.aspx"
|
17 |
|
18 |
+
# cookies = []
|
19 |
+
# fetch_cookie = fetch_new_cookies()
|
20 |
+
# if fetch_cookie:
|
21 |
+
# cookies.append(fetch_cookie)
|
22 |
+
# else:
|
23 |
+
# print("Failed to fetch cookies.")
|
24 |
+
# cookie = cookies[0] if cookies else None
|
25 |
+
cookie = "05ce2l33kdadliupune0bi55"
|
26 |
|
27 |
headers = {
|
28 |
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
|