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 mechanize | |
from lxml import etree | |
import json | |
__author__ = "https://github.com/SirFroweey/" | |
class SoundCloud: | |
""" |
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
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: |