cleanup; seems broken now getting 403s...

This commit is contained in:
2021-05-04 21:37:46 -05:00
parent 3f544189ff
commit e256f60332
9 changed files with 29 additions and 23 deletions

9
band
View File

@@ -1,15 +1,15 @@
#!/usr/bin/env python3
#
# http://github.com/mitchweaver/bin
# http://github.com/mitchweaver/metal-archives
#
# get a given band pic from metal-archives.com
#
# Usage: ./band 'judas iscariot'
#
from bs4 import BeautifulSoup
import urllib
import sys
import urllib
from bs4 import BeautifulSoup
def band_pic(band):
try:
@@ -32,4 +32,5 @@ def band_pic(band):
def main():
band_pic(sys.argv[1])
if __name__ == "__main__": main()
if __name__ == "__main__":
main()

5
cover
View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# http://github.com/mitchweaver/bin
# http://github.com/mitchweaver/metal-archives
#
# get a given album cover from metal-archives.com
#
@@ -60,4 +60,5 @@ def main():
url = find_album_url(arg[0], arg[1])
get_album_art(url)
if __name__ == "__main__": main()
if __name__ == "__main__":
main()

5
genre
View File

@@ -1,6 +1,6 @@
#!/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
#
@@ -54,4 +54,5 @@ def parse(url):
def main():
parse(url = 'https://www.metal-archives.com/bands/' + sys.argv[1])
if __name__ == "__main__": main()
if __name__ == "__main__":
main()

View File

@@ -1,6 +1,6 @@
#!/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
#
@@ -53,4 +53,5 @@ def parse(url):
def main():
parse(url = 'https://www.metal-archives.com/bands/' + sys.argv[1])
if __name__ == "__main__": main()
if __name__ == "__main__":
main()

5
logo
View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# http://github.com/mitchweaver/bin
# http://github.com/mitchweaver/metal-archives
#
# get a given band logo from metal-archives.com
#
@@ -30,4 +30,5 @@ def band_logo(band):
def main():
band_logo(sys.argv[1])
if __name__ == "__main__": main()
if __name__ == "__main__":
main()

5
lyrics
View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# http://github.com/mitchweaver/bin
# http://github.com/mitchweaver/metal-archives
#
# grab lyrics from lyricswikia
#
@@ -22,4 +22,5 @@ def main():
arg = sys.argv[1].split(' - ')
lyrics(arg[0], arg[1])
if __name__ == "__main__": main()
if __name__ == "__main__":
main()

View File

@@ -1,8 +1,7 @@
PREFIX = /usr/local
PREFIX = /usr/local
.PHONY: all install uninstall
all: install
all:
@>&2 echo "Use 'make install'"
install:
@echo 'Installing metal-archives scripts...'
@@ -25,4 +24,3 @@ uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/lyrics
rm -f $(DESTDIR)$(PREFIX)/bin/releases
rm -f $(DESTDIR)$(PREFIX)/bin/songs

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# http://github.com/mitchweaver/bin
# http://github.com/mitchweaver/metal-archives
#
# get releases of a band from metal-archives
#
@@ -108,4 +108,5 @@ def get_releases(band):
def main():
get_releases(sys.argv[1])
if __name__ == "__main__": main()
if __name__ == "__main__":
main()

5
songs
View File

@@ -1,6 +1,6 @@
#!/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
#
@@ -97,4 +97,5 @@ def main():
url = find_album_url(arg[0], arg[1])
get_songs(url)
if __name__ == "__main__": main()
if __name__ == "__main__":
main()