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
""" | |
Fetch song lyrics | |
Fetches song lyrics from Genius API based on a CSV with a list of songs. | |
Outputs song lyrics in a separate CSV. | |
CSVs are set through command line parameters. | |
Uses asynchronous routines to fetch song lyrics to fetch many lyrics at a time. | |
Requires Python 3.6+ | |
Install: |
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 json | |
import networkx as nx | |
import requests | |
from shapely.geometry import shape | |
def fetch_geojson(): | |
"""Fetches GeoJSON for U.S. Counties. | |
Example feature: {'GEO_ID': '0400000US23', 'STATE': '23', 'NAME': 'Maine', |
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
""" | |
PySpark tokenizer transformer | |
PySpark transformer that supports format-preserving encryption using the FFX1 algorithm (from pyffx library) | |
requirements: | |
pyffx | |
pyspark | |
""" | |
from string import digits, ascii_uppercase, ascii_lowercase |
OlderNewer