grep -h "'url': 'https\?://" youtube-dl/youtube_dl/extractor/* | sed -e "s|^\s*'url': 'https\?://||" | sed -e "s|[/|'|:].*||" | sed -e "s|^www\.||" | sort | uniq > ytdl_sites.txt sed -ie '/%/d' ytdl_sites.txt sed -ie '/#/d' ytdl_sites.txt