This file contains 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
function gettingData(){ | |
var txt; | |
var httpGetter = new XMLHttpRequest(); | |
httpGetter.open("GET","file:///Users/jackbonadies/lastFMtop50/listOfFiles.txt",false); | |
httpGetter.onreadystatechange = function() { | |
if(httpGetter.readyState === 4){ | |
if(httpGetter.status === 200 | httpGetter.status === 0){ | |
var rawText = httpGetter.responseText; | |
txt = rawText; | |
return txt; |
This file contains 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
#!/usr/bin/env python3 | |
from bs4 import BeautifulSoup | |
import requests | |
import os | |
import subprocess | |
source=requests.get('https://www.last.fm/user/lastpriest/library/albums').text | |
soup=BeautifulSoup(source,'lxml') | |
albums=soup.find_all('img') | |
imgUrls = [] | |
for album in albums: |