this post was submitted on 28 Feb 2024
0 points (50.0% liked)

Survivor

134 readers
1 users here now

Come on in!

Welcome, we are a community for fans of the show Survivor. Drop your buffs, share your favorite Survivor trivia, pics, opinions, etc.

Wanna know what you're playing for? Mostly just a fun place to chat about our favorite reality show so let's make the most of it.

--Stay respectful

-No hate speech allowed

🔥THE TRIBE HAS SPOKEN🔥

founded 1 year ago
MODERATORS
 

This sloppy bash script generates the above html players table from this site:

https://ew.com/survivor-46-cast-contestants-revealed-8557071

Maybe this can be expanded to track player eliminations.

Hopefully this code posts correctly...

#!/bin/bash
#
# List Survivor Season 46 Players
#
#

URL=https://ew.com/survivor-46-cast-contestants-revealed-8557071

cat <
DONE


wget $URL -O - \
    | grep -A 5 "mntl-sc-block-heading__text" \
    | sed 's/.*__text"> /<div><div>/g' \
    | sed 's/&lt;\/span.*/<br>/g' \
    | sed 's/&lt;\/img>&lt;\/div>/g' \
    | sed '/^\-\-$/d' \
    | sed '/^$/d' 


echo "</div>"



you are viewing a single comment's thread
view the rest of the comments
[–] jaybone@lemmy.world 1 points 8 months ago* (last edited 8 months ago)

lol nope, that did not post code correctly. I'll try one more time.

Edit: still not working. That's weird because it renders correctly in the preview.