Spaces:
Running
Running
Hashir Kashif
commited on
Commit
·
9e0b96b
1
Parent(s):
3878f5e
asdasdasdasasdasdll
Browse files
app.py
CHANGED
@@ -243,7 +243,10 @@ def getNetflixInfoWithApi(cookiefile):
|
|
243 |
billingDate = " "
|
244 |
planName = soup.find("div", {"data-uia": "plan-name"})
|
245 |
print(planName)
|
246 |
-
|
|
|
|
|
|
|
247 |
billingDate = GoogleTranslator(source='auto',
|
248 |
target='en').translate(billingDate)
|
249 |
try:
|
@@ -291,14 +294,14 @@ def getNetflixInfoWithApi(cookiefile):
|
|
291 |
|
292 |
except Exception as e:
|
293 |
print(e)
|
294 |
-
f = open("
|
295 |
f.write(str(e) + "\n\n")
|
296 |
f.close()
|
297 |
print("\n Moving in noMember")
|
298 |
S = 10
|
299 |
ran = ''.join(
|
300 |
random.choices(string.ascii_uppercase + string.digits, k=S))
|
301 |
-
shutil.move(cookiefile, '
|
302 |
return "Error occured"
|
303 |
else:
|
304 |
os.remove(cookiefile)
|
|
|
243 |
billingDate = " "
|
244 |
planName = soup.find("div", {"data-uia": "plan-name"})
|
245 |
print(planName)
|
246 |
+
try:
|
247 |
+
planName = planName.get_text()
|
248 |
+
except:
|
249 |
+
planName = ""
|
250 |
billingDate = GoogleTranslator(source='auto',
|
251 |
target='en').translate(billingDate)
|
252 |
try:
|
|
|
294 |
|
295 |
except Exception as e:
|
296 |
print(e)
|
297 |
+
f = open("./Membership/error.txt", "a")
|
298 |
f.write(str(e) + "\n\n")
|
299 |
f.close()
|
300 |
print("\n Moving in noMember")
|
301 |
S = 10
|
302 |
ran = ''.join(
|
303 |
random.choices(string.ascii_uppercase + string.digits, k=S))
|
304 |
+
shutil.move(cookiefile, './NoMembership/NoMember' + str(ran) + ".txt")
|
305 |
return "Error occured"
|
306 |
else:
|
307 |
os.remove(cookiefile)
|