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/<\/span.*/<br>/g' \
| sed 's/<\/img><\/div>/g' \
| sed '/^\-\-$/d' \
| sed '/^$/d'
echo "</div>"
</div>
You must log in or register to comment.
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.