-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathNouredinekn.py
More file actions
115 lines (93 loc) · 3.96 KB
/
Nouredinekn.py
File metadata and controls
115 lines (93 loc) · 3.96 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
from selenium import webdriver
import requests
import os
import datetime
from time import sleep
# clear console
def clear():
os.system('cls')
# colors
class colors:
R = '\033[91m' # Red
G = '\033[92m' # Green
Y = '\033[93m' # Yellow
B = '\033[94m' # Blue
P = '\033[95m' # Purple
C = '\033[96m' # Cyan
W = "\033[1;37m" # White
bold = '\033[1m'
unbold = '\033[0m'
# telegram config
class getTgInfo:
try:
tlg = open('telegram.txt', 'r').read()
token = tlg.split('|')[0]
id = tlg.split('|')[1]
except:
token = ""
id = ""
# telegram Post
def sndToTelegram(id, token, mesg):
r = requests.get(
f'https://api.telegram.org/bot{token}/sendMessage?chat_id={id}&text={mesg}')
# driver runner
def driver(path):
#options = webdriver.ChromeOptions()
# PROXY ={'proxy':{
# 'socks':'socks5://p15cilof-tmv86gd:kbpfju3a6q@socks-us.windscribe.com:1080',
# }}
# socks-us.windscribe.com:1080:p15cilof-tmv86gd:kbpfju3a6q
#options.add_experimental_option("excludeSwitches", ["enable-logging"])
# options.add_argument('--disable-blink-features=AutomationControlled')
# options=options,
drv = webdriver.Chrome(
executable_path=path) # ,seleniumwire_options=PROXY)
sleep(1)
return drv
# banner
def banner(hits, inv, chk):
os.system('cls')
return f'''{colors.bold}
{colors.R}
### ### ########## ########### ### ###
:::: ::: :::::::::: ::::::::::: :::::::::: ::: ::::::::::: ::: :::
:+:+: :+: :+: :+: :+: :+: :+: :+: :+:
:+:+:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+
+#+ +:+ +#+ +#++:++# +#+ :#::+::# +#+ +#+ +#++:+
+#+ +#+#+# +#+ +#+ +#+ +#+ +#+ +#+ +#+
#+# #+#+# #+# #+# #+# #+# #+# #+# #+#
### #### ##########
{colors.B}NETFLIX CHECKER V 2.0.0 selenium by nouredinekn hits saved as result
{colors.W}------------------------------------------------------------------------------------------------------------
{colors.bold} {colors.Y} [ {colors.R}! {colors.Y}] {colors.P} DEV BY: {colors.G} NOUREDINE KN
{colors.bold} {colors.Y} [ {colors.R}! {colors.Y}] {colors.P}TG-USER-NOUREDINE: {colors.G} t.me/n2k4n or t.me/nouredine_kn
{colors.bold}{colors.Y} [ {colors.R}! {colors.Y}] {colors.P}github: {colors.G} github.com/nouredinekn
{colors.bold}{colors.Y} [ {colors.R}! {colors.Y}] {colors.P}DATE: {colors.G}{datetime.datetime.now().date()}
{colors.W}------------------------------------------------------------------------------------------------------------
{colors.P} CHECKED: {chk}
{colors.R} INVALIDE: {inv}
{colors.G} HITS: {hits}
'''
# copyRight c
def other():
return 'Nouredine_Kn | @n2k4n |@nouredine_kn '
def saveHits(hits):
if os.path.isdir('result'):
name = f'[{datetime.datetime.now().date()}]hits-netflix-[nouredine_kn]'
if os.path.isdir(f'./result/{name}/'):
open(
f'./result/{name}/hits-netflix-Premium[Nouredine_kn].txt', 'a', encoding='utf-8').write(hits+'\n')
else:
os.mkdir(f'result/{name}')
open(
f'./result/{name}/hits-netflix-Premium[Nouredine_kn].txt', 'a', encoding='utf-8').write(hits+'\n')
else:
os.mkdir('result')
name = f'[{datetime.datetime.now().date()}]hits-netflix-[nouredine_kn]'
if os.path.isdir(f'./result/{name}/'):
open(
f'./result/{name}/hits-netflix-Premium[Nouredine_kn].txt', 'a', encoding='utf-8').write(hits+'\n')
else:
os.mkdir(f'result/{name}')
open(
f'./result/{name}/hits-netflix-Premium[Nouredine_kn].txt', 'a', encoding='utf-8').write(hits+'\n')