Skip to content

Instantly share code, notes, and snippets.

View reydus's full-sized avatar

Raymond Minarro reydus

View GitHub Profile
@Bilka2
Bilka2 / webhook.py
Last active July 19, 2024 10:51
Simple discord webhook with python
import requests # dependency
url = "<your url>" # webhook url, from here: https://i.imgur.com/f9XnAew.png
# for all params, see https://discordapp.com/developers/docs/resources/webhook#execute-webhook
data = {
"content" : "message content",
"username" : "custom username"
}
@WilHall
WilHall / WebpageThumbnailsInPython.md
Created November 29, 2013 00:45
Webpage Thumbnails In Python

#Webpage Thumbnails In Python A small WSGI script that uses selenium's headless PhantomJS driver to capture webpage screenshots, and PIL to resize them. Cropping options could easily be added.

##Dependencies

  • Python selenium
  • Python PIL
  • PhantomJS