Open ishell opened 9 years ago
I am also facing same issue.. please suggest how to solve this..
Got the same problem for all WWDC videos. A couple of days ago it still went well.
Here what i found in my analysis, Apple has changes it's website presentation for wwdc videos, So script is unable to fetch video url's..problem is somewhere parsing the video.html file near lines
cat ${TMP_DIR}/video.html | sed -e '/class="thumbnail-title/,/<div class="error">/!d' > $TMP_DIR/video-cleaned.html
--------
cat ${TMP_DIR}/video-cleaned.html | while read line; do
sessionNum=`echo $line | grep -o -E '<li class="thumbnail-title">(.*)</li><li class="thumbnail-(id|play)">(.*)</li>' | grep -o -E 'Session [0-9]*' | cut -d' ' -f2`
title_array[$sessionNum]=`echo $line | grep -o -E '<li class="thumbnail-title">(.*)</li><li class="thumbnail-(id|play)">(.*)</li>' | cut -d'>' -f2 | sed 's/<\/li$//g'`
echo "$sessionNum,${title_array[$sessionNum]}" >> $TMP_DIR/titles.txt
done
`sed -n '/^,/!p' $TMP_DIR/titles.txt > $TMP_DIR/titles.txt.tmp && mv $TMP_DIR/titles.txt.tmp $TMP_DIR/titles.txt`
it needs to parse correct html tag..
Hi , I want to download WWDC2013-405 video and url is https://developer.apple.com/videos/play/wwdc2013-405/, and I try
./wwdcVideoPDFGet-curlVersion.sh -y 2013 -s 405
on iTerm2, it return this :It just create a folder on my local disk.Then I type
./wwdcVideoPDFGet-curlVersion.sh -y 2013 -s 405 -l my@email.com
it turn out this:
How to solve this ?