Song Contest 152 (Results posted!)
-
-
Plotinus Kitten Caboodle
- Kitten Caboodle
- Kitten Caboodle
- Posts: 7611
- Joined: March 13, 2015
- Location: UTC+1
I'm stacking sandbags against the river of your troublesThe failure mode of clever is asshole.
Modding checklists | Sequencer is in Game 5 | Space II is in Day 4-
-
Plotinus Kitten Caboodle
- Kitten Caboodle
- Kitten Caboodle
- Posts: 7611
- Joined: March 13, 2015
- Location: UTC+1
I use a python script to download everything into one folder. it can handle a few different kinds of linksThe failure mode of clever is asshole.
Modding checklists | Sequencer is in Game 5 | Space II is in Day 4-
-
Plotinus Kitten Caboodle
- Kitten Caboodle
- Kitten Caboodle
- Posts: 7611
- Joined: March 13, 2015
- Location: UTC+1
songContest.pyIn post 52, toolenduso wrote:2. somebody said they use python to scrape the entry links, would you mind sharing that script with me?
usage: just typeand it will download everything to ~/Music/SC152/, but you can specify a different directory at runtime if you want.Code: Select all
songContest.py "https://forum.mafiascum.net/viewtopic.php?f=6&t=83548"
It uses beautiful soup to parse the HTML and find the links to the songs. It uses youtube-dl to download youtube songs or it tries to download other songs with wget if it detects a file extension that suggests that'll work. If it can't handle a link it'll output an error message to the console.
It uses threading to speed the downloads up.The failure mode of clever is asshole.
Modding checklists | Sequencer is in Game 5 | Space II is in Day 4-
-
Plotinus Kitten Caboodle
- Kitten Caboodle
- Kitten Caboodle
- Posts: 7611
- Joined: March 13, 2015
- Location: UTC+1
I'm happy to answer any questions about what parts of it do.
This was my first time using threading and there's some room for improvement -- it works and doesn't do anything bad, but it would be better if it outputted all the error messages at the end, instead I have to scroll through a lot of youtube-dl's output to find the "Couldn't handle Belarus' link: not available in your country".
Looking at the code you would think that would happen last because it's the last thing in the code, but threading can make things happen out of order. So I've been meaning to redo that bit for about a year, but I haven't been getting to it because it does work.
Actually, after typing all this out I think if I add a --quiet flag to youtube-dl and turn the logging down (or off) then it'll quiet youtube-dl down enough to make it a non-issue. I've edited the gist.The failure mode of clever is asshole.
Modding checklists | Sequencer is in Game 5 | Space II is in Day 4-
-
Plotinus Kitten Caboodle
- Kitten Caboodle
- Kitten Caboodle
- Posts: 7611
- Joined: March 13, 2015
- Location: UTC+1
Contest of the muffled lyrics, the vast majority of these I couldn't tell if they were in a language I can speak or not
Spoiler: Alphabetaised by countryThe failure mode of clever is asshole.
Modding checklists | Sequencer is in Game 5 | Space II is in Day 4-
-
Plotinus Kitten Caboodle
- Kitten Caboodle
- Kitten Caboodle
- Posts: 7611
- Joined: March 13, 2015
- Location: UTC+1
congrats, Hiraki!The failure mode of clever is asshole.
Modding checklists | Sequencer is in Game 5 | Space II is in Day 4
Copyright © MafiaScum. All rights reserved.