Anonymous
8/5/2025, 5:44:11 PM
No.11349797
>>11349769 cont.
Actually, it's not been that inconvenient to put all the thumbnails together, because I realised I could just write a python script to take all the links and then print them out in the format I wanted
images = []
thumbs = []
with open("in.txt", 'r') as f:
text = f.read()
i = 0
end = -1
while True:
i = text.find("href=", i)
if i == -1:
break
i = text.find("'", i)+1
end = text.find("'", i)
images.append(text[i:end])
i = text.find("img src=", i)
i = text.find("'", i)+1
end = text.find("'", i)
thumbs.append(text[i:end])
with open("out.txt", 'w') as f:
for i in range(len(images)-1,-1,-1):
f.write(">\n")
f.write(f">[]({images[i]})\n")
f.write(">\n\n")
Although I still had to go through and put them on the same line, and I think I will want to combine more just to save space a little
Actually, it's not been that inconvenient to put all the thumbnails together, because I realised I could just write a python script to take all the links and then print them out in the format I wanted
images = []
thumbs = []
with open("in.txt", 'r') as f:
text = f.read()
i = 0
end = -1
while True:
i = text.find("href=", i)
if i == -1:
break
i = text.find("'", i)+1
end = text.find("'", i)
images.append(text[i:end])
i = text.find("img src=", i)
i = text.find("'", i)+1
end = text.find("'", i)
thumbs.append(text[i:end])
with open("out.txt", 'w') as f:
for i in range(len(images)-1,-1,-1):
f.write(">\n")
f.write(f">[]({images[i]})\n")
f.write(">\n\n")
Although I still had to go through and put them on the same line, and I think I will want to combine more just to save space a little