I’d like to set up a web browser ringtone and get SMS text alerts when I get notifications on KTT2, can we make it happen? @mods @s
you should just pay for premium
import time
from bs4 import BeautifulSoup
import requests
import playsound
FORUM_URL = 'ktt2.com/notifications'
USERNAME = 'yourUsername'
PASSWORD = 'yourPassword'
CHECK_INTERVAL = 60 # in seconds
ALERT_SOUND = 'alert.mp3' # Replace with the path to your alert sound
def get_notification_count():
# Login and retrieve the notifications page
with requests.Session() as session:
# This may need to change based on your forum's login process
payload = {'username': USERNAME, 'password': PASSWORD}
session.post(ktt2.com + '/login', data=payload)
response = session.get(FORUM_URL)
# Parse the notifications page
soup = BeautifulSoup(response.text, 'html.parser')
# This also might need to change based on the structure of your forum's notification page
notification_count = int(soup.find('span', {'class': 'notification-count'}).text)
return notification_count
def main():
last_count = 0
while True:
current_count = get_notification_count()
if current_count > last_count:
playsound.playsound(ALERT_SOUND)
last_count = current_count
time.sleep(CHECK_INTERVAL)
if name == 'main':
main()
import time
from bs4 import BeautifulSoup
import requests
import playsound
FORUM_URL = 'https://ktt2.com/notifications'
USERNAME = 'yourUsername'
PASSWORD = 'yourPassword'
CHECK_INTERVAL = 60 # in seconds
ALERT_SOUND = 'alert.mp3' # Replace with the path to your alert sound
def get_notification_count():
# Login and retrieve the notifications page
with requests.Session() as session:
# This may need to change based on your forum's login process
payload = {'username': USERNAME, 'password': PASSWORD}
session.post(ktt2.com + '/login', data=payload)
response = session.get(FORUM_URL)
# Parse the notifications page
soup = BeautifulSoup(response.text, 'html.parser')
# This also might need to change based on the structure of your forum's notification page
notification_count = int(soup.find('span', {'class': 'notification-count'}).text)
return notification_count
def main():
last_count = 0
while True:
current_count = get_notification_count()
if current_count > last_count:
playsound.playsound(ALERT_SOUND)
last_count = current_count
time.sleep(CHECK_INTERVAL)
if name == 'main':
main()
Bro?
yes?
Is that for mobile or desktop only the website doesn’t work on mobile
And did you just write up that script lol?
You are way too invested in KTT then
I just want to respond to my KTT2-kin in a respectful timely manner my friend
import time
from bs4 import BeautifulSoup
import requests
import playsound
FORUM_URL = 'https://ktt2.com/notifications'
USERNAME = 'yourUsername'
PASSWORD = 'yourPassword'
CHECK_INTERVAL = 60 # in seconds
ALERT_SOUND = 'alert.mp3' # Replace with the path to your alert sound
def get_notification_count():
# Login and retrieve the notifications page
with requests.Session() as session:
# This may need to change based on your forum's login process
payload = {'username': USERNAME, 'password': PASSWORD}
session.post(ktt2.com + '/login', data=payload)
response = session.get(FORUM_URL)
# Parse the notifications page
soup = BeautifulSoup(response.text, 'html.parser')
# This also might need to change based on the structure of your forum's notification page
notification_count = int(soup.find('span', {'class': 'notification-count'}).text)
return notification_count
def main():
last_count = 0
while True:
current_count = get_notification_count()
if current_count > last_count:
playsound.playsound(ALERT_SOUND)
last_count = current_count
time.sleep(CHECK_INTERVAL)
if name == 'main':
main()
I wonder if this script actually works if you host it on a server
I mean, it would be more helpful if users had direct access to API like Twitter/X and Google offer on a per-account token basis
imagine getting a phone call cause a ktt2 user quoted you and called you a dumbass
That's for KTT3
imagine getting a phone call cause a ktt2 user quoted you and called you a dumbass
OP about to get spammed in the near future with phone calls because 20 people posted his avi
There’s a super premium option which comes with a microchip implant that goes into your brain to allow you to seamlessly view the site and instantly respond to comments and notifications.
import time
from bs4 import BeautifulSoup
import requests
import playsound
FORUM_URL = 'https://ktt2.com/notifications'
USERNAME = 'yourUsername'
PASSWORD = 'yourPassword'
CHECK_INTERVAL = 60 # in seconds
ALERT_SOUND = 'alert.mp3' # Replace with the path to your alert sound
def get_notification_count():
# Login and retrieve the notifications page
with requests.Session() as session:
# This may need to change based on your forum's login process
payload = {'username': USERNAME, 'password': PASSWORD}
session.post(ktt2.com + '/login', data=payload)
response = session.get(FORUM_URL)
# Parse the notifications page
soup = BeautifulSoup(response.text, 'html.parser')
# This also might need to change based on the structure of your forum's notification page
notification_count = int(soup.find('span', {'class': 'notification-count'}).text)
return notification_count
def main():
last_count = 0
while True:
current_count = get_notification_count()
if current_count > last_count:
playsound.playsound(ALERT_SOUND)
last_count = current_count
time.sleep(CHECK_INTERVAL)
if name == 'main':
main()
don’t use this it drained my bitcoin wallet