Skip to content

Instantly share code, notes, and snippets.

View noahbroyles's full-sized avatar

Noah Broyles noahbroyles

View GitHub Profile
@noahbroyles
noahbroyles / youtube_music_video_search.py
Last active April 10, 2023 04:34
Search YouTube Music for videos from any search phrase
# AUTHOR: Noah Broyles
# DESCRIPTION: Uses the YouTube Music search API to find videoURLs, titles, artists, and thumbnail images for any songs searched for.
#
# Last Working: Oct 29, 2021
import re
import json
import requests
from addict import Dict
@noahbroyles
noahbroyles / youtube_music_suggestions.py
Created October 25, 2021 18:10
Gets search suggestions from YouTube Music
# AUTHOR: Noah Broyles
# DESCRIPTION: Uses the YouTube Music search suggestions API to get search suggestions from a query. API key already provided, scraped cleanly right off
# youtube's own site. ;)
#
# Last Working: Oct 25, 2021
import re
import json
import requests
@noahbroyles
noahbroyles / get-bitbucket-deployment-variables.md
Last active May 24, 2024 17:31
How to get the BitBucket Deployment Variables

How to get BitBucket Deployment Variables

Disclaimer: This is not an encouragement to use BitBucket. This is only here to help the poor people who are stuck with it.

The following JavaScript functions can be used to extract the environment variables for a BitBucket deployment into a shell script which sets the environment variables locally.
This is helpful for when you want to test something locally without manually having to copy and paste 50 environment variables.

/**
 * Get the deployment variables for a given BitBucket deployment, and return them in a dictionary.
 *