<jupyter_start><jupyter_text>Top 40 Charts Functions<jupyter_code>## Basic stuff
%load_ext autoreload
%autoreload
from IPython.core.display import display, HTML
display(HTML("<style>.container { width:100% !important; }</style>"))
display(HTML("""<style>div.output_area{max-height:10000px;overflow:scroll;}</style>"""))

## Python Version
import sys
from glob import glob
from os import getcwd
from os.path import join
from fileUtils import getBasename, getDirname, getBaseFilename
from fsUtils import isFile, isDir, moveFile, removeFile, mkDir, setFile, moveFile
from searchUtils import findDirs, findExt
from webUtils import getHTML, getWebData
from timeUtils import getDateTime, isDate
from ioUtils import saveJoblib, loadJoblib, saveFile, getFile
import urllib


from discogsBase import discogs
from artists import artists
from multiArtist import multiArtist
print("Python: {0}".format(sys.version))

from pandas import date_range
basedir = getcwd()
print("Basedir = {0}".format(basedir))

import datetime as dt
start = dt.datetime.now()
print("Notebook Last Run Initiated: "+str(start))<jupyter_output><empty_output><jupyter_text>Download Unknown Artists<jupyter_code>%load_ext autoreload
%autoreload
disc = discogs()
arts = artists(disc)
import json
toGet = getFile(ifile="toget11.p")
len(toGet)
from time import sleep
for i,val in enumerate(toGet):
    print('='*30,val,'(',i,'/',len(toGet),')','='*30)
    try:
        arts.searchDiscogForArtist(val, sleeptime=2)
    except:
        continue
    print("\n\n\n")
    sleep(2)<jupyter_output>============================== Little ( 0 / 174 ) ==============================


===================== Searching For Little =====================
Downloading: https://www.discogs.com/search/?q=Little&limit=250&type=artist
Found 251 artists
2 / 251 	: 6 	 https://www.discogs.com/artist/223473-Little-Richard?sort=year%2Casc&limit=500
3 / 251 	: 6 	 https://www.discogs.com/artist/685691-Little-Jack-Little?sort=year%2Casc&limit=500
Saving /Volumes/Music/Discog/artists/91/685691.p (force=False)
  --> This file is 20.2kB.
Done. Sleeping for 2 seconds
4 / 251 	: 6 	 https://www.discogs.com/artist/258557-Little-Feat?sort=year%2Casc&limit=500
5 / 251 	: 5 	 https://www.discogs.com/artist/85727-Ian-Little?sort=year%2Casc&limit=500
6 / 251 	: 6 	 https://www.discogs.com/artist/340688-Little-Walter?sort=year%2Casc&limit=500
7 / 251 	: 6 	 https://www.discogs.com/artist/503060-Little-Dragon?sort=year%2Casc&limit=500
8 / 251 	: 5 	 https://www.discogs.com/artist/90542-Little-Steven?sort=year%2Casc[...]
{'fraction_non_alphanumeric': 0.16992952231793265, 'fraction_numerical': 0.05559906029757244, 'mean_word_length': 5.585051546391752, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 13, 'https://': 8, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '195407', 'license': 'MIT', 'n_tokens_mistral': 1023, 'n_tokens_neox': 881, 'n_words': 188, 'path': 'Downloads.ipynb', 'repo_name': 'tgadf/charts', 'size': '2554'}