- 파이썬3 에서 동작합니다.
- requests, beautifulsoup4 라이브러리가 필요합니다.
pip install requests beautifulsoup4
// change this variable to change timeout for async scroll load | |
var TIMEOUT_IN_MS = 1000 | |
// script from https://gist.github.com/xavhan/87717da0217b9b8299df | |
// start from www.shazam.com/myshazam | |
// print all shazam songs loaded on the page | |
// TODO: Change format to JSON | |
function printShazamSongs(){ | |
$(".ti__details").each(function(i){ | |
var artist = $(this).find(".ti__artist meta").attr("content"); |
# Fish shell | |
egrep "^export " ~/.bash_profile | while read e | |
set var (echo $e | sed -E "s/^export ([A-Z_]+)=(.*)\$/\1/") | |
set value (echo $e | sed -E "s/^export ([A-Z_]+)=(.*)\$/\2/") | |
# remove surrounding quotes if existing | |
set value (echo $value | sed -E "s/^\"(.*)\"\$/\1/") | |
if test $var = "PATH" |