Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not download WWDC2013 videos? #34

Open
ishell opened this issue Oct 8, 2015 · 3 comments
Open

Can not download WWDC2013 videos? #34

ishell opened this issue Oct 8, 2015 · 3 comments

Comments

@ishell
Copy link

ishell commented Oct 8, 2015

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 :

Using 'no password' mode (this is possible since WWDC 2014 sessions addition => Apple bug ?)!
try using -l option if download does not work.

sed: /tmp/wwdc-session-8E67B4C3-3AD8-48C4-B949-0D1C51E189D0.tmp/titles.txt: No such file or directory
./wwdcVideoPDFGet-curlVersion.sh: line 46: /tmp/wwdc-session-8E67B4C3-3AD8-48C4-B949-0D1C51E189D0.tmp/titles.txt: No such file or directory
******* DOWNLOADING PDF FILES ********
******* DOWNLOADING SD VIDEOS ********

It just create a folder on my local disk.Then I type ./wwdcVideoPDFGet-curlVersion.sh -y 2013 -s 405 -l [email protected]

it turn out this:

Password:
sed: /tmp/wwdc-session-30B909D2-6D8E-481B-A83F-44E6EDC31178.tmp/titles.txt: No such file or directory
./wwdcVideoPDFGet-curlVersion.sh: line 46: /tmp/wwdc-session-30B909D2-6D8E-481B-A83F-44E6EDC31178.tmp/titles.txt: No such file or directory
******* DOWNLOADING PDF FILES ********
******* DOWNLOADING SD VIDEOS ********

How to solve this ?

@chandanankush
Copy link
Contributor

I am also facing same issue.. please suggest how to solve this..

@mjzjohn
Copy link

mjzjohn commented Oct 14, 2015

Got the same problem for all WWDC videos.
A couple of days ago it still went well.

@chandanankush
Copy link
Contributor

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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants