Skip to content

Instantly share code, notes, and snippets.

View TestPrab's full-sized avatar
🎯
Focusing

Prabhat Singh TestPrab

🎯
Focusing
  • Void
View GitHub Profile
import socket
import sys
client=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
client.connect((socket.gethostname(),1235))
print(" Connection Establised ")
def Option():
opt=input("Enter 1 if you wanna send message ")
client.send(opt.encode("ascii"))
if opt=="1":
@TestPrab
TestPrab / versionLoad.py
Last active May 15, 2021 19:42
Module Loader
import os.path
import zipfile
import tempfile
import v2
import v3
from xml.dom import minidom
@TestPrab
TestPrab / Vaccination Bot
Last active June 23, 2021 16:15
Vaccination Bot , Notifies you about the availability of Vaccine for the particular district on telegram . Reference taken from https://github.com/RAvengineer/vad-bot , by @RAvengineer
from requests import get, post
from time import sleep
from datetime import datetime
from random import randint
API_SETU_URL = "https://cdn-api.co-vin.in/api/v2/"
APPOINTMENTS_AVAILABILITY = "appointment/sessions/public/"
CALENDAR_DISTRICT = "calendarByDistrict"
CALENDAR_PINCODE = "calendarByPin"
API_HEADERS = {
@TestPrab
TestPrab / casestudyporter.ipynb
Created October 27, 2022 17:45
CaseStudyPorter.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.