Skip to content

Instantly share code, notes, and snippets.

@SirFroweey
SirFroweey / soundcloud_api_client.py
Last active February 2, 2024 13:55
Download SoundCloud Track via SoundCloud API
import mechanize
from lxml import etree
import json
__author__ = "https://github.com/SirFroweey/"
class SoundCloud:
"""
@SirFroweey
SirFroweey / flatten_nested_lists.py
Last active June 28, 2017 20:22
Flatten nested lists
def flatten_list(nested_list):
"""
:param nested_list: a nested python list.
Returns a flattened list.
"""
flattened_list = []
for data_type in nested_list:
if isinstance(data_type, list):
flattened_list += flatten_list(data_type)
else: