Skip to content

Commit d79ade9

Browse files
committed
UPDATED: More jam testing
1 parent abc6b43 commit d79ade9

File tree

2 files changed

+39
-27
lines changed

2 files changed

+39
-27
lines changed

jam.md

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,16 @@
11
<div>
22
<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?hide_cover=1&mini=1&feed=%2Faxlfc%2Fcasa-lola-jam-session-na-x%2F" frameborder="0" ></iframe>
3-
4-
<iframe width=100% height=60 src=https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-1%2F&amp;hide_cover=1 frameborder=0></iframe>
5-
6-
<iframe width=100% height=60 src=https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-2%2F&amp;hide_cover=1 frameborder=0></iframe>
7-
8-
<iframe width=100% height=60 src=https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-35%2F&amp;hide_cover=1 frameborder=0></iframe>
9-
10-
<iframe width=100% height=60 src=https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-23%2F&amp;hide_cover=1 frameborder=0></iframe>
11-
12-
<iframe width=100% height=60 src=https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-13%2F&amp;hide_cover=1 frameborder=0></iframe>
13-
14-
<iframe width=100% height=60 src=https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-33%2F&amp;hide_cover=1 frameborder=0></iframe>
15-
16-
<iframe width=100% height=60 src=https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-%25CF%2580%2F&amp;hide_cover=1 frameborder=0></iframe>
17-
18-
<iframe width=100% height=60 src=https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-iv%2F&amp;hide_cover=1 frameborder=0></iframe>
19-
20-
<iframe width=100% height=60 src=https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-iv-34%2F&amp;hide_cover=1 frameborder=0></iframe>
21-
22-
<iframe width=100% height=60 src=https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-5%2F&amp;hide_cover=1 frameborder=0></iframe>
23-
24-
<iframe width=100% height=60 src=https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-6%2F&amp;hide_cover=1 frameborder=0></iframe>
25-
26-
<iframe width=100% height=60 src=https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-7%2F&amp;hide_cover=1 frameborder=0></iframe>
27-
3+
<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-session-na-x%2F" frameborder="0"></iframe>
4+
<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-1%2F" frameborder="0"></iframe>
5+
<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-2%2F" frameborder="0"></iframe>
6+
<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-35%2F" frameborder="0"></iframe>
7+
<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-23%2F" frameborder="0"></iframe>
8+
<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-13%2F" frameborder="0"></iframe>
9+
<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-33%2F" frameborder="0"></iframe>
10+
<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-%25CF%2580%2F" frameborder="0"></iframe>
11+
<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-iv%2F" frameborder="0"></iframe>
12+
<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-iv-34%2F" frameborder="0"></iframe>
13+
<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-5%2F" frameborder="0"></iframe>
14+
<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-6%2F" frameborder="0"></iframe>
15+
<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Faxlfc%2Fcasa-lola-jam-sessions-na-x-7%2F" frameborder="0"></iframe>
2816
</div>

scrapemixcloud.py

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,33 @@
1313

1414
for line in htmlLines:
1515
iframeList.append(line.split('"html":')[1].split(',"author_name"')[0].replace('\\', '').replace('height="120"', 'height="60"').replace('"', '')[1:-1])
16-
16+
dem = []
1717
num = len(iframeList) - len(bashList)
1818
with open("mixCloudTracks.md", "w") as o:
1919
for k in range(len(bashList)):
2020
print(iframeList[k + num] + "\n\n")
21-
o.writelines(iframeList[k + num] + "\n")
21+
this = iframeList[k + num].replace('&amp;hide_cover=1', '')
22+
#print(iframeList[k + num].replace('&amp;hide_cover=1', '').split(' ') + "\n\n")
23+
#o.writelines(iframeList[k + num] + "\n")
24+
thingy = this.split(" ")
25+
those = []
26+
for thing in range(len(thingy)):
27+
edited = ""
28+
if 0 < thing < 4:
29+
edited = '"' + thingy[thing].split('=')[1] + '"'
30+
if thing == 3:
31+
edited = thingy[thing][3:][1:]
32+
edited = '"' + edited + '"'
33+
that = thingy[thing].split("=")[0] + "=" + edited
34+
elif thing == 4:
35+
edited = '"' + thingy[thing].split('=')[1].split(">")[0] + '"' + "></iframe>"
36+
that = thingy[thing].split("=")[0] + "=" + edited
37+
else:
38+
that = thingy[thing] + edited
39+
those.append(that)
40+
thee = ""
41+
for they in those:
42+
thee = thee + " " + they
43+
dem.append(thee)
44+
for i in dem:
45+
print(i)

0 commit comments

Comments
 (0)