def get_soundcloud_data(url):
    """
    Scrapes a SoundCloud page for a track's important information.

    Returns:
        dict: of audio data

    """

    data = {}

    request = requests.get(url)

    title_tag = request.text.split('<title>')[1].split('</title')[0]
    data['title'] = title_tag.split(' by ')[0].strip()
    data['artist'] = title_tag.split(' by ')[1].split('|')[0].strip()
    # XXX Do more..

    return data
def get_soundcloud_data ( url ) : data = { } request = requests . get ( url ) title_tag = request . text . split ( '<title>' ) [ 1 ] . split ( '</title' ) [ 0 ] data [ 'title' ] = title_tag . split ( ' by ' ) [ 0 ] . strip ( ) data [ 'artist' ] = title_tag . split ( ' by ' ) [ 1 ] . split ( '|' ) [ 0 ] . strip ( ) return data
Scrapes a SoundCloud page for a track's important information.

    Returns:
        dict: of audio data