Skip to content

Instantly share code, notes, and snippets.

View alsak0de's full-sized avatar

alsak0de alsak0de

View GitHub Profile
@alsak0de
alsak0de / WA-scraper-test.py
Created January 14, 2023 15:56
Whatsapp scraper with rapidapi (free version)
import requests
# refustered function returns a boolean value
def WSP_registered_free(token, phone, apikey):
url = "https://whatsapp-scraper.p.rapidapi.com/free/wchk"
querystring = {"phone":phone, "token":token}
headers = {
"X-RapidAPI-Key": apikey,
"X-RapidAPI-Host": "whatsapp-scraper.p.rapidapi.com"
}
@alsak0de
alsak0de / whin.svg
Created January 10, 2023 22:13
whin logo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alsak0de
alsak0de / whinpy
Last active January 6, 2023 20:47
Basic python code to use whin (whatsapp self messaging)
import requests
def sendWSP(message, apikey,gid=0):
url = "https://whin2.p.rapidapi.com/send"
headers = {
"content-type": "application/json",
"X-RapidAPI-Key": apikey,
"X-RapidAPI-Host": "whin2.p.rapidapi.com"}
try:
if gid==0:
return requests.request("POST", url, json=message, headers=headers)