Last update: Fri Jul 26 08:23:20 UTC 2019 by @luckylittle
This file contains 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
#!/usr/bin/env python | |
""" | |
Download all the pdfs linked on a given webpage | |
Usage - | |
python grab_pdfs.py url <path/to/directory> | |
url is required | |
path is optional. Path needs to be absolute |
This file contains 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
#Sample code for SMS decoder | |
import re, string | |
def chatDecoder(): | |
abr=['b1','141','AA','AAK','AAF','A3','LOL','IAAG','FR'] | |
longAbr=['be one','one for all and all for one','Ask about','Alive and kicking/Asleep at keyboard','As a friend/As a matter of fact','Anytime, Anywhere, Anyplace',\ | |
'laugh out loud','i am a Genuis','for real'] | |
message=input("What message do you want decoded? \n") | |
translator = str.maketrans({key: None for key in string.punctuation}) | |
message=message.translate(translator) | |
messageToList=message.split() # change a sentence into a list so that i can loop through the words. |