This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
import datetime | |
import requests | |
from bs4 import BeautifulSoup | |
def get_movie_titles(url): | |
""" | |
Fetches a webpage and extracts movie titles from whentostream.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
import requests | |
from bs4 import BeautifulSoup | |
def extract_dvd_titles(): | |
""" | |
Extracts DVD/Blu-ray titles from dvdsreleasedates.com for the current month | |
""" | |
url = "https://www.dvdsreleasedates.com/digital-releases/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
import requests | |
from bs4 import BeautifulSoup | |
def extract_dvd_titles(): | |
""" | |
Extracts DVD/Blu-ray titles from dvdsreleasedates.com for the current month | |
""" | |
url = "https://www.dvdsreleasedates.com" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
import requests | |
from bs4 import BeautifulSoup | |
def extract_movie_titles_from_url(url): | |
""" | |
Fetches and parses an HTML page to extract movie titles from firstshowing.net | |
Args: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[all] | |
ssh.ocpv08.rhdp.net:30265 | |
nonexistent.host.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Enable "Call script when done downloading" | |
noti -t "Transmission finished download" -m "ID:${TR_TORRENT_ID}, NAME:${TR_TORRENT_NAME}, PATH:${TR_TORRENT_DIR}" -o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IyEvYmluL2Jhc2gKCiMgTG9nIGFsbCBvdXRwdXQgZm9yIGRlYnVnZ2luZwpleGVjID4gPih0ZWUg | |
L3Zhci9sb2cvdXNlci1kYXRhLmxvZykgMj4mMQoKZWNobyAiU3RhcnRpbmcgdXNlciBkYXRhIHNj | |
cmlwdCBhdCAkKGRhdGUpIgoKIyBXYWl0IGZvciB0aGUgRUJTIHZvbHVtZSB0byBiZSBhdmFpbGFi | |
bGUKZWNobyAiV2FpdGluZyBmb3IgRUJTIHZvbHVtZSB0byBiZSBhdmFpbGFibGUuLi4iCndoaWxl | |
IFsgISAtZSAvZGV2L252bWUxbjEgXTsgZG8KICBlY2hvICJXYWl0aW5nIGZvciAvZGV2L252bWUx | |
bjEuLi4iCiAgc2xlZXAgNQpkb25lCgplY2hvICJFQlMgdm9sdW1lIC9kZXYvbnZtZTFuMSBpcyBh | |
dmFpbGFibGUiCgojIENyZWF0ZSBwYXJ0aXRpb24gb24gdGhlIEVCUyB2b2x1bWUKZWNobyAiQ3Jl | |
YXRpbmcgcGFydGl0aW9uIG9uIC9kZXYvbnZtZTFuMS4uLiIKKAplY2hvIG4gIyBBZGQgYSBuZXcg | |
cGFydGl0aW9uCmVjaG8gcCAjIFByaW1hcnkgcGFydGl0aW9uCmVjaG8gMSAjIFBhcnRpdGlvbiBu | |
dW1iZXIKZWNobyAgICMgRmlyc3Qgc2VjdG9yIChBY2NlcHQgZGVmYXVsdDogMSkKZWNobyAgICMg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess | |
import re | |
from collections import defaultdict | |
# Directory containing the .torrent files like 534DB1275682C6F5CFC5EE0C10D414B84CB84BC4.torrent | |
torrent_dir = "~/Downloads" | |
# Map to track name collisions | |
name_counts = defaultdict(int) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Parameters | |
DISC_LABEL=$(isoinfo -d -i /dev/sr0 | grep 'Volume id: ' | sed 's|Volume id: ||') | |
MOUNT_POINT="/mnt/bluray" | |
CATALOG_FILE="/home/$USER/Temp/Catalogs/bdr_catalog.txt" | |
# Ensure the catalog file exists | |
touch $CATALOG_FILE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CURRENT_PRICE=$(curl -k https://www.pbtech.com/au/product/DVBVER1863710/Verbatim-97284-Blu-Ray-BD-R-DL-50GB-25Pk-Spindle-W | grep '"price":' | sed 's|<script type="application/ld+json">||' | sed 's|</script>||' | jq '.[] | select(.offers) | .offers[].price') | |
LAST_KNOWN_PRICE=$(cat /home/$USER/pbtech.txt) | |
if [ "$CURRENT_PRICE" = "$LAST_KNOWN_PRICE" ]; | |
then | |
: | |
else |
NewerOlder