Skip to content

Instantly share code, notes, and snippets.

@xd003
xd003 / selenium-setup.sh
Last active April 5, 2023 13:18
Bash Script to setup Python + Selenium + chromedriver on a Headless Chrome Browser
View selenium-setup.sh
#!/usr/bin/env bash
echo "This script will setup webdriver of your choice for selenium and create a template script with appropriate settings"
sleep 2
echo "This Script only supports Linux 64 bit and arm64/aarch64 kernel architecture currently"
sleep 2
uname="$(uname -m)"
case $uname in
arm64|aarch64|x86_64 )
View gist:e8dbcd6664eb3693629f0e0403807fe5
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
View error.txt
Traceback (most recent call last):
File "D:\wks\l3.py", line 25, in <module>
correct, keys = WV_Function(pssh, lic_url)
File "D:\wks\l3.py", line 19, in WV_Function
widevine_license = requests.post(url=lic_url, data=wvdecrypt.get_challenge(), headers=headers.headers)
AttributeError: module 'headers' has no attribute 'headers'