{"action":"created","issue":{"url":"https://api.github.com/repos/coursera-dl/coursera-dl/issues/499","repository_url":"https://api.github.com/repos/coursera-dl/coursera-dl","labels_url":"https://api.github.com/repos/coursera-dl/coursera-dl/issues/499/labels{/name}","comments_url":"https://api.github.com/repos/coursera-dl/coursera-dl/issues/499/comments","events_url":"https://api.github.com/repos/coursera-dl/coursera-dl/issues/499/events","html_url":"https://github.com/coursera-dl/coursera-dl/issues/499","id":160108353,"number":499,"title":"Course won't download","user":{"login":"racemus","id":4839476,"avatar_url":"https://avatars.githubusercontent.com/u/4839476?v=3","gravatar_id":"","url":"https://api.github.com/users/racemus","html_url":"https://github.com/racemus","followers_url":"https://api.github.com/users/racemus/followers","following_url":"https://api.github.com/users/racemus/following{/other_user}","gists_url":"https://api.github.com/users/racemus/gists{/gist_id}","starred_url":"https://api.github.com/users/racemus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/racemus/subscriptions","organizations_url":"https://api.github.com/users/racemus/orgs","repos_url":"https://api.github.com/users/racemus/repos","events_url":"https://api.github.com/users/racemus/events{/privacy}","received_events_url":"https://api.github.com/users/racemus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-14T06:44:25Z","updated_at":"2016-06-14T08:11:12Z","closed_at":"2016-06-14T07:31:20Z","body":"### Subject of the issue\r\nCourse won't download.\r\n\r\n### Your environment\r\n* Operating System (name/version): Mac OS X 10.11.5\r\n* Python version: 3.5.1\r\n* coursera-dl version: last\r\n\r\n### Steps to reproduce\r\nJust try to download \"java-programming-design-principles\" course\r\n\r\n* Is the problem happening with the latest version of the script? Yes\r\n* Do you have all the recommended versions of the modules? See them in the\r\n  file `requirements.txt`. Yep\r\n* What is the course that you are trying to access? java-programming-design-principles\r\n* What is the precise command line that you are using (don't forget to obfuscate\r\n  your username and password, but leave all other information untouched).\r\ncoursera-dl -u ####@####.com -p ************* --video-resolution 720p java-programming-design-principles\r\n* What are the precise messages that you get? Please, use the `--debug`\r\n  option before posting the messages as a bug report. Please, copy and paste\r\n  them.  Don't reword/paraphrase the messages.\r\n\r\n```\r\nroot[main] Downloading class: java-programming-design-principles\r\nroot[download_class] Downloading old style class java-programming-design-principles\r\nroot[get_cookies_from_cache] Trying to get cookies from the cache.\r\nroot[load_cookies_file] Loading cookie file /var/folders/6z/7_w0ynld5bl45wk9q6b0pdch0000gn/T/aries_coursera_dl_cache/cookies/aries.elein@gmail.com.txt into memory.\r\nroot[get_cookies_from_cache] Could not load cookies from the cache.\r\nroot[login] Initiating login.\r\nroot[login] There were no .coursera.org cookies to be cleared.\r\nrequests.packages.urllib3.connectionpool[_new_conn] Starting new HTTPS connection (1): class.coursera.org\r\nrequests.packages.urllib3.connectionpool[_make_request] \"GET /java-programming-design-principles HTTP/1.1\" 404 None\r\nroot[login] 404 Client Error: Not Found for url: https://class.coursera.org/java-programming-design-principles\r\nroot[download_class] Downloading new style (on demand) class java-programming-design-principles\r\nroot[login] Initiating login.\r\nroot[login] There were no .coursera.org cookies to be cleared.\r\nroot[login] Forging cookie header: csrftoken=b6BffJWr9wiuFxHp1Q8o; csrf2_token_pY89uLht=wxaC7oxsECOVwLLHwN1BJgjY.\r\nrequests.packages.urllib3.connectionpool[_new_conn] Starting new HTTPS connection (1): www.coursera.org\r\nrequests.packages.urllib3.connectionpool[_make_request] \"POST /api/login/v3 HTTP/1.1\" 200 None\r\nroot[login] Logged in on coursera.org.\r\nrequests.packages.urllib3.connectionpool[_make_request] \"GET /api/opencourse.v1/course/java-programming-design-principles HTTP/1.1\" 200 None\r\nroot[get_on_demand_syllabus] Downloaded https://www.coursera.org/api/opencourse.v1/course/java-programming-design-principles (23754 bytes)\r\nroot[parse_on_demand_syllabus] Parsing syllabus of on-demand course. This may take some time, be patient ...\r\nrequests.packages.urllib3.connectionpool[_make_request] \"GET /api/opencourse.v1/video/2b9JAaQNEeWeig6Xp9V2dw HTTP/1.1\" 200 None\r\nroot[_extract_videos_and_subtitles_from_lecture] Parsing JSON for video_id <2b9JAaQNEeWeig6Xp9V2dw>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Gathering video URLs for video_id <2b9JAaQNEeWeig6Xp9V2dw>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Proceeding with download of resolution 720p of <2b9JAaQNEeWeig6Xp9V2dw>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Gathering subtitle URLs for video_id <2b9JAaQNEeWeig6Xp9V2dw>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Gathering transcript URLs for video_id <2b9JAaQNEeWeig6Xp9V2dw>.\r\nroot[extract_links_from_supplement] Gathering supplement URLs for element_id <Yyrxg>.\r\nrequests.packages.urllib3.connectionpool[_make_request] \"GET /api/onDemandSupplements.v1/dB1qehnoEeWwrBKfKrqlSQ~Yyrxg?includes=asset&fields=openCourseAssets.v1%28typeName%29,openCourseAssets.v1%28definition%29 HTTP/1.1\" 200 None\r\nroot[extract_links_from_supplement] Gathering supplement URLs for element_id <03Pyh>.\r\nrequests.packages.urllib3.connectionpool[_make_request] \"GET /api/onDemandSupplements.v1/dB1qehnoEeWwrBKfKrqlSQ~03Pyh?includes=asset&fields=openCourseAssets.v1%28typeName%29,openCourseAssets.v1%28definition%29 HTTP/1.1\" 200 None\r\nrequests.packages.urllib3.connectionpool[_make_request] \"GET /api/assetUrls.v1?ids=Ak8E_sOTEeWUahLPevmjfw%2C9ycdS8OUEeWu4ApYq4IbUQ%2CW6WBVsOTEeWicwr5JH8fgw%2CRpYoI8OUEeWPRQ4YsSEORQ%2CKImh1sOVEeWPRQ4YsSEORQ%2CECYcb8OTEeWFNA5XwZEiOw%2C7wykMcOTEeWPRQ4YsSEORQ%2CnKpJ-sOUEeWu4ApYq4IbUQ%2Ct2GnUcOSEeWzmA6yyDbkWw%2CyjYPG8OSEeWVLw5DTx4w7w%2CHmeOMMOTEeWPRQ4YsSEORQ HTTP/1.1\" 200 None\r\nrequests.packages.urllib3.connectionpool[_make_request] \"GET /api/opencourse.v1/video/kqxrbp6fEeWwrA7gXKI29w HTTP/1.1\" 200 None\r\nroot[_extract_videos_and_subtitles_from_lecture] Parsing JSON for video_id <kqxrbp6fEeWwrA7gXKI29w>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Gathering video URLs for video_id <kqxrbp6fEeWwrA7gXKI29w>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Proceeding with download of resolution 720p of <kqxrbp6fEeWwrA7gXKI29w>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Gathering subtitle URLs for video_id <kqxrbp6fEeWwrA7gXKI29w>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Gathering transcript URLs for video_id <kqxrbp6fEeWwrA7gXKI29w>.\r\nrequests.packages.urllib3.connectionpool[_make_request] \"GET /api/opencourse.v1/video/Wybulp6SEeWJmQroKumh6Q HTTP/1.1\" 200 None\r\nroot[_extract_videos_and_subtitles_from_lecture] Parsing JSON for video_id <Wybulp6SEeWJmQroKumh6Q>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Gathering video URLs for video_id <Wybulp6SEeWJmQroKumh6Q>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Proceeding with download of resolution 720p of <Wybulp6SEeWJmQroKumh6Q>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Gathering subtitle URLs for video_id <Wybulp6SEeWJmQroKumh6Q>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Gathering transcript URLs for video_id <Wybulp6SEeWJmQroKumh6Q>.\r\nrequests.packages.urllib3.connectionpool[_make_request] \"GET /api/opencourse.v1/video/vzCFP56SEeW7tAou3qoLgw HTTP/1.1\" 200 None\r\nroot[_extract_videos_and_subtitles_from_lecture] Parsing JSON for video_id <vzCFP56SEeW7tAou3qoLgw>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Gathering video URLs for video_id <vzCFP56SEeW7tAou3qoLgw>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Proceeding with download of resolution 720p of <vzCFP56SEeW7tAou3qoLgw>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Gathering subtitle URLs for video_id <vzCFP56SEeW7tAou3qoLgw>.\r\nroot[_extract_videos_and_subtitles_from_lecture] Gathering transcript URLs for video_id <vzCFP56SEeW7tAou3qoLgw>.\r\nrequests.packages.urllib3.connectionpool[_make_request] \"GET /api/openCourseAssets.v1/qnI3nqTrEeWY7gq_5mSiqQ HTTP/1.1\" 200 None\r\nroot[_get_open_course_asset_ids] Parsing JSON for asset_id <qnI3nqTrEeWY7gq_5mSiqQ>.\r\nTraceback (most recent call last):\r\n  File \"/Users/aries/.virtualenvs/coursera/lib/python3.5/site-packages/coursera/cookies.py\", line 91, in login\r\n    r.raise_for_status()\r\n  File \"/Users/aries/.virtualenvs/coursera/lib/python3.5/site-packages/requests/models.py\", line 844, in raise_for_status\r\n    raise HTTPError(http_error_msg, response=self)\r\nrequests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://class.coursera.org/java-programming-design-principles\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/Users/aries/.virtualenvs/coursera/lib/python3.5/site-packages/coursera/coursera_dl.py\", line 1031, in download_class\r\n    return download_old_style_class(args, class_name)\r\n  File \"/Users/aries/.virtualenvs/coursera/lib/python3.5/site-packages/coursera/coursera_dl.py\", line 912, in download_old_style_class\r\n    username=args.username, password=args.password)\r\n  File \"/Users/aries/.virtualenvs/coursera/lib/python3.5/site-packages/coursera/cookies.py\", line 345, in get_cookies_for_class\r\n    get_authentication_cookies(session, class_name, username, password)\r\n  File \"/Users/aries/.virtualenvs/coursera/lib/python3.5/site-packages/coursera/cookies.py\", line 166, in get_authentication_cookies\r\n    login(session, username, password, class_name=class_name)\r\n  File \"/Users/aries/.virtualenvs/coursera/lib/python3.5/site-packages/coursera/cookies.py\", line 94, in login\r\n    raise ClassNotFound(class_name)\r\ncoursera.cookies.ClassNotFound: java-programming-design-principles\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/Users/aries/.virtualenvs/coursera/bin/coursera-dl\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/Users/aries/.virtualenvs/coursera/lib/python3.5/site-packages/coursera/coursera_dl.py\", line 1056, in main\r\n    if download_class(args, class_name):\r\n  File \"/Users/aries/.virtualenvs/coursera/lib/python3.5/site-packages/coursera/coursera_dl.py\", line 1034, in download_class\r\n    return download_on_demand_class(args, class_name)\r\n  File \"/Users/aries/.virtualenvs/coursera/lib/python3.5/site-packages/coursera/coursera_dl.py\", line 987, in download_on_demand_class\r\n    args.video_resolution)\r\n  File \"/Users/aries/.virtualenvs/coursera/lib/python3.5/site-packages/coursera/coursera_dl.py\", line 331, in parse_on_demand_syllabus\r\n    video_resolution, assets)\r\n  File \"/Users/aries/.virtualenvs/coursera/lib/python3.5/site-packages/coursera/api.py\", line 73, in extract_links_from_lecture\r\n    links, self._extract_links_from_lecture_assets(assets))\r\n  File \"/Users/aries/.virtualenvs/coursera/lib/python3.5/site-packages/coursera/api.py\", line 127, in _extract_links_from_lecture_assets\r\n    for open_course_asset_id in self._get_open_course_asset_ids(asset_id):\r\n  File \"/Users/aries/.virtualenvs/coursera/lib/python3.5/site-packages/coursera/api.py\", line 153, in _get_open_course_asset_ids\r\n    for element in dom['elements']]\r\n  File \"/Users/aries/.virtualenvs/coursera/lib/python3.5/site-packages/coursera/api.py\", line 153, in <listcomp>\r\n    for element in dom['elements']]\r\nKeyError: 'assetId'\r\n```"},"comment":{"url":"https://api.github.com/repos/coursera-dl/coursera-dl/issues/comments/225809731","html_url":"https://github.com/coursera-dl/coursera-dl/issues/499#issuecomment-225809731","issue_url":"https://api.github.com/repos/coursera-dl/coursera-dl/issues/499","id":225809731,"user":{"login":"balta2ar","id":340676,"avatar_url":"https://avatars.githubusercontent.com/u/340676?v=3","gravatar_id":"","url":"https://api.github.com/users/balta2ar","html_url":"https://github.com/balta2ar","followers_url":"https://api.github.com/users/balta2ar/followers","following_url":"https://api.github.com/users/balta2ar/following{/other_user}","gists_url":"https://api.github.com/users/balta2ar/gists{/gist_id}","starred_url":"https://api.github.com/users/balta2ar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balta2ar/subscriptions","organizations_url":"https://api.github.com/users/balta2ar/orgs","repos_url":"https://api.github.com/users/balta2ar/repos","events_url":"https://api.github.com/users/balta2ar/events{/privacy}","received_events_url":"https://api.github.com/users/balta2ar/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T08:11:12Z","updated_at":"2016-06-14T08:11:12Z","body":"Sure, here it is: https://github.com/coursera-dl/coursera-dl#alternative-installation-method-for-unix-systems"}}
{"actor":{"display_login":"balta2ar"}}