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>

  • @jayboneOP
    link
    1
    edit-2
    10 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.