-
-
Save Per9/3b6831866ad1fe8484f7dc5f59056d7c to your computer and use it in GitHub Desktop.
Parse firmware list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use HTML::Entities; | |
$_ = `curl -s https://openwrt.org/toh/views/datalist-csv`; | |
s#.*<ul class="dataplugin_list ">(.*?)</ul>.*#$1#s; | |
s#</li>[^<]*#\n#sg; | |
s/<.*?>//sg; | |
print decode_entities($_); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment