Skip to content

41 B5 6F 7D 8E CE 44 F8 6E 87 CF B5 #1786

41 B5 6F 7D 8E CE 44 F8 6E 87 CF B5

41 B5 6F 7D 8E CE 44 F8 6E 87 CF B5 #1786

Workflow file for this run

name: scrape m3u
on:
push
jobs:
automated-scrape:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@main
- name: run commands
run: |
for i in A-*.txt ; do for j in $(cat $i) ; do curl -s https://radiomixer.net/en/$j > mep1 ; cat mep1 | ./htmlq -t h1 | awk 'NR==1 {$0="#EXTINF:-1," $0} 1' | sed 's| Radio listen live||g' | sed 's| listen live||g' >> A$i ; cat mep1 | grep 'data-id' | sed -n '2p' | awk -F '"' '{print $2}' > iidd ; curl -s https://radiomixer.net/en/api/station/$(cat iidd)/stream | ./htmlq -a href a | sed 's/\;//g' | sed '/^$/d' >> A$i ; echo -e "$i - $j" ; done ; done
- name: git stuff
run: |
git config --local user.email "action[bot]@github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "$(od -An -tx4 -w16 -N16 /dev/urandom | cut -c2- | tr '[:lower:]' '[:upper:]')"
git push