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>"



</div>

  • jaybone@lemmy.worldOP
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    9 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.

  • jaybone@lemmy.worldOP
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    9 months ago

    There’s very little activity on this com. I try to post something fun on premiere day, and I get downvoted. Nice.