Skip to content

Instantly share code, notes, and snippets.

import argparse
import socket
import sys
Version = "1.0"
parser = argparse.ArgumentParser()
parser.add_argument("host", action="store", help="The host to test")
parser.add_argument("-r", action="store", dest="range", help="A range of ports to scan speperated by a -, for example: -r 125-150")
parser.add_argument("--version", action="version", version="%(prog)s {}".format(Version))
@psidex
psidex / playlist.py
Created January 30, 2017 16:22
Get all video links from a Youtube playlist
import requests
import json
"""
The Youtube API only provides a certain amount of results per page, so if there
are lots of videos in a playlist it will need multiple pages to get all the videos
"""
# EDIT THESE
api_key = "YOUTUBE V3 API KEY"