cleanup; seems broken now getting 403s...
This commit is contained in:
9
band
9
band
@@ -1,15 +1,15 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# http://github.com/mitchweaver/bin
|
# http://github.com/mitchweaver/metal-archives
|
||||||
#
|
#
|
||||||
# get a given band pic from metal-archives.com
|
# get a given band pic from metal-archives.com
|
||||||
#
|
#
|
||||||
# Usage: ./band 'judas iscariot'
|
# Usage: ./band 'judas iscariot'
|
||||||
#
|
#
|
||||||
|
|
||||||
from bs4 import BeautifulSoup
|
|
||||||
import urllib
|
|
||||||
import sys
|
import sys
|
||||||
|
import urllib
|
||||||
|
from bs4 import BeautifulSoup
|
||||||
|
|
||||||
def band_pic(band):
|
def band_pic(band):
|
||||||
try:
|
try:
|
||||||
@@ -32,4 +32,5 @@ def band_pic(band):
|
|||||||
def main():
|
def main():
|
||||||
band_pic(sys.argv[1])
|
band_pic(sys.argv[1])
|
||||||
|
|
||||||
if __name__ == "__main__": main()
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|||||||
5
cover
5
cover
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# http://github.com/mitchweaver/bin
|
# http://github.com/mitchweaver/metal-archives
|
||||||
#
|
#
|
||||||
# get a given album cover from metal-archives.com
|
# get a given album cover from metal-archives.com
|
||||||
#
|
#
|
||||||
@@ -60,4 +60,5 @@ def main():
|
|||||||
url = find_album_url(arg[0], arg[1])
|
url = find_album_url(arg[0], arg[1])
|
||||||
get_album_art(url)
|
get_album_art(url)
|
||||||
|
|
||||||
if __name__ == "__main__": main()
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|||||||
5
genre
5
genre
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# http://github.com/mitchweaver/bin
|
# http://github.com/mitchweaver/metal-archives
|
||||||
#
|
#
|
||||||
# get the genre of a given band from metal-archives
|
# get the genre of a given band from metal-archives
|
||||||
#
|
#
|
||||||
@@ -54,4 +54,5 @@ def parse(url):
|
|||||||
def main():
|
def main():
|
||||||
parse(url = 'https://www.metal-archives.com/bands/' + sys.argv[1])
|
parse(url = 'https://www.metal-archives.com/bands/' + sys.argv[1])
|
||||||
|
|
||||||
if __name__ == "__main__": main()
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|||||||
5
location
5
location
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# http://github.com/mitchweaver/bin
|
# http://github.com/mitchweaver/metal-archives
|
||||||
#
|
#
|
||||||
# get the location of a given band from metal-archives
|
# get the location of a given band from metal-archives
|
||||||
#
|
#
|
||||||
@@ -53,4 +53,5 @@ def parse(url):
|
|||||||
def main():
|
def main():
|
||||||
parse(url = 'https://www.metal-archives.com/bands/' + sys.argv[1])
|
parse(url = 'https://www.metal-archives.com/bands/' + sys.argv[1])
|
||||||
|
|
||||||
if __name__ == "__main__": main()
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|||||||
5
logo
5
logo
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# http://github.com/mitchweaver/bin
|
# http://github.com/mitchweaver/metal-archives
|
||||||
#
|
#
|
||||||
# get a given band logo from metal-archives.com
|
# get a given band logo from metal-archives.com
|
||||||
#
|
#
|
||||||
@@ -30,4 +30,5 @@ def band_logo(band):
|
|||||||
def main():
|
def main():
|
||||||
band_logo(sys.argv[1])
|
band_logo(sys.argv[1])
|
||||||
|
|
||||||
if __name__ == "__main__": main()
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|||||||
5
lyrics
5
lyrics
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# http://github.com/mitchweaver/bin
|
# http://github.com/mitchweaver/metal-archives
|
||||||
#
|
#
|
||||||
# grab lyrics from lyricswikia
|
# grab lyrics from lyricswikia
|
||||||
#
|
#
|
||||||
@@ -22,4 +22,5 @@ def main():
|
|||||||
arg = sys.argv[1].split(' - ')
|
arg = sys.argv[1].split(' - ')
|
||||||
lyrics(arg[0], arg[1])
|
lyrics(arg[0], arg[1])
|
||||||
|
|
||||||
if __name__ == "__main__": main()
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|||||||
6
makefile
6
makefile
@@ -1,8 +1,7 @@
|
|||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
|
||||||
.PHONY: all install uninstall
|
all:
|
||||||
|
@>&2 echo "Use 'make install'"
|
||||||
all: install
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo 'Installing metal-archives scripts...'
|
@echo 'Installing metal-archives scripts...'
|
||||||
@@ -25,4 +24,3 @@ uninstall:
|
|||||||
rm -f $(DESTDIR)$(PREFIX)/bin/lyrics
|
rm -f $(DESTDIR)$(PREFIX)/bin/lyrics
|
||||||
rm -f $(DESTDIR)$(PREFIX)/bin/releases
|
rm -f $(DESTDIR)$(PREFIX)/bin/releases
|
||||||
rm -f $(DESTDIR)$(PREFIX)/bin/songs
|
rm -f $(DESTDIR)$(PREFIX)/bin/songs
|
||||||
|
|
||||||
|
|||||||
5
releases
5
releases
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# http://github.com/mitchweaver/bin
|
# http://github.com/mitchweaver/metal-archives
|
||||||
#
|
#
|
||||||
# get releases of a band from metal-archives
|
# get releases of a band from metal-archives
|
||||||
#
|
#
|
||||||
@@ -108,4 +108,5 @@ def get_releases(band):
|
|||||||
def main():
|
def main():
|
||||||
get_releases(sys.argv[1])
|
get_releases(sys.argv[1])
|
||||||
|
|
||||||
if __name__ == "__main__": main()
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|||||||
5
songs
5
songs
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# http://github.com/mitchweaver/bin
|
# http://github.com/mitchweaver/metal-archives
|
||||||
#
|
#
|
||||||
# get songs from a given 'band - album' from metal-archives.com
|
# get songs from a given 'band - album' from metal-archives.com
|
||||||
#
|
#
|
||||||
@@ -97,4 +97,5 @@ def main():
|
|||||||
url = find_album_url(arg[0], arg[1])
|
url = find_album_url(arg[0], arg[1])
|
||||||
get_songs(url)
|
get_songs(url)
|
||||||
|
|
||||||
if __name__ == "__main__": main()
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user