#!/bin/bash # cd ~/Library/Caches/Safari, then # find . -type f -print | xargs strings | grep 'kids_landing/assets/kids_radio/assets.*mp3' | sed -e 's/^.*http/http/' -e 's/"$//' | sort -u SITE="http://www.nickjr.com/kids_landing/assets/kids_radio/assets/mp3" BANDWIDTH="_hi" backyardigans=" a_pirate_says_arrgh astronauts backyardigans_theme boinga brave_and_pink_knight buffalo_girls drizzling echo falling_off_a_log flying_rock ghost hide_and_go_boo hold_tight i_love_being_a_princess i_want_my_river_back im_a_mountie im_tarzan into_thick_of_it laser_limbo little_wormy lullabye mars_2 mars mermaids message no_such_thing oh_my_sherman p_u please_and_thank_you queens_are_never_wrong questing ready riding_the_range row_your_boat scurvey_pirate sea_of_gobbly_goo secret_agent secret shake_your_body show_going ski_patrol sneaking_and_hiding snowball_duty texas the_secret_of_the_nile three_presents tower_of_power treasure treasures_of_ancient_egypt trudge vikings we_are_super_heroes whats_so_scary when_Im_booing where_in_the_world who_could_it_be whos_there yeti_stomp you_and_me_to_the_rescue " blue=" alphabet backseat_boogie blues_clues_theme blues_room_theme circle_time closing_song colors_song doodleboard friends glasses go_outside home_sweet_home im_so_happy letter " curious_buddies=" I_can_help I_like_sand baby_brother curious_buddies fruit_salad if_your_happy look_listen picnic seen_a_fishy the_park to_the_beach walk_the_beach water_at_beach what_goes_up " diego=" brinca cha_cha click_the_camera_theme diego_theme_new end_theme_inst honk_honk macaw nada nademos penguin_song rescue_pack_theme sube tree_frog vuele " dora=" abc_song animal_abc_song backpack_theme baseball_baseball batte_chocolate boingy_boingy_bing bouncy_ball buenas_noches caliente celebration chicken_dance costumes dora_theme fairy_tale_land feliz_cumpleanos feliz_navidad get_on_your_feet grumpy_old_troll happy_birthday_swiper hes_really_gonna_hit_it isa_turn_the_wheel la_lechuza map_theme mary_little_lamb my_boots_and_me pirates_love_to_sing popping_bubbles sailing_to_treasure_island sana_sana seven_seas someones_special_day squeaky_squeaky super_map tenemos_amigos travel_song twinkle_little_star we_are_family " fairly_odd_parents=" fairly_odd_parents_theme " jimmy_neutron=" jimmy_neutron_theme " lazytown=" anything_can bing_bang cooking_book dancing energy galaxy get_it_together gizmo_guy go_for_it good_to_be_bad goodstuff have_you_never i_can_move i_love_christmas im_a_prince lazyscout lazytown_theme man_on_a_mission master_of_disguise pirate playtime spooky_song stepbystep team_work the_minesong theres_always_a_way twenty_times wake_up woof_woof_woof " littlebill=" little_bill_theme " max_and_ruby=" instrumental_2 " max_and_ruby=" instrumental_3 instrumental_4 instrumental_5 max_rub_theme " miss_spider=" bug_buddies bugaboo buggy_conga dribbley hatch_day jolly_holly_day lost_found minute_song opening_theme painting_pictures slow_down " night_kitchen_radio=" frank_joey10 frank_joey1 frank_joey2 frank_joey3 frank_joey4 frank_joey5 frank_joey6 frank_joey7 frank_joey8 frank_joey9 happy_bees if_youre_a_bee my_honey_bee night_kitchen_intro " oswald=" big_banana big_parade helping_day i_dont_need_it in_the_air oswald_theme polka_dot_umbrella rollerskate_song sammy_starfish weenies_the_best_pet what_to_collect " rubbadubbers=" rubbadubbers_theme " spongebob=" spongebob_theme " upside_down_show=" actionfingerstheme creditstheme discoinferno docoep103 docoep109 docoep110 gameshow musicroom titletheme " whoopis_littleburg=" but_i_still_like_you cheer_up_tiger_jane hey_macaroni i_love_to_sing if_youre_happy littleburg_theme littleburg_tour_song lullaby maybe_friends maybe_tha_dha_day parade sock_to_find_song tha_dha_day then_what welcome_wagon wheels_ on_the_bus " wild_thornberrys=" wild_thornberrys_theme " wonder_pets=" christmas_eve fa_la_la_hey get_to_shore linny_tuck_mm_city phone_is_ringing teamwork tickle_the_whale to_be_free wonder_pets_love wonder_pets_theme_dolphin wonder_pets_theme_kids " wubbzy=" friends imagine little_help look_dont_touch made_by_you magic mr_cool paint_a_picture perfect_day pet_party wait were_all_together wubbzy_theme youre_a_star " show="$1" eval "list=\$$show" [ "$list" = "" ] && echo "Bad show." && exit 1 for file in $list do [ ! -f "$file.mp3" ] && lynx --source "$SITE/$show/$file$BANDWIDTH.mp3" > $file.mp3 ls -l $file.mp3 done