Skip to content

Instantly share code, notes, and snippets.

View ranoke's full-sized avatar
🙃
hmmm

RANOK ranoke

🙃
hmmm
View GitHub Profile
{
"tests": [
{
"url" : "https://someurl.com",
"count" : 0,
"cfg" : "name.cfg"
},
{
}
import requests
import re
r = requests.get("https://www.facebook.com/VPNBookNews/")
src = r.text
password = re.search(pattern=r"Password: .......", string=src)
print(password.group(0)[10:])
@ranoke
ranoke / discord-bot-post-message.py
Created February 1, 2020 18:52 — forked from ianklatzco/discord-bot-post-message.py
sends messages to a discord channel using a bot via http POST
# post a message to discord api via a bot
# bot must be added to the server and have write access to the channel
# you may need to connect with a websocket the first time you run the bot
# use a library like discord.py to do so
import requests
import json
channelID = "your_id_goes_here" # enable dev mode on discord, right-click on the channel, copy ID
botToken = "your_token_here" # get from the bot page. must be a bot, not a discord app