I like this so far
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# testing getting images dynamically
|
||||
first_call=$(lynx -dump -listonly "https://commons.wikimedia.org/w/index.php?search=${1//_/+}&title=Special:MediaSearch&go=Go&type=image")
|
||||
lynx -dump -listonly \
|
||||
set -x
|
||||
first_call=$(lynx -accept-all-cookies -dump -listonly "https://commons.wikimedia.org/w/index.php?search=${1//_/+}&title=Special:MediaSearch&go=Go&type=image")
|
||||
lynx -dump -listonly -accept-all-cookies\
|
||||
$(echo "$first_call" \
|
||||
| sed '11q;d' \
|
||||
| awk '{print $2}' ) \
|
||||
|
||||
Reference in New Issue
Block a user