Giter Club home page Giter Club logo

Comments (11)

rbrito avatar rbrito commented on May 18, 2024

Hi, @alvatarc,

I think that we need further information on your environment (as I put on our README recently), since I have no problems here:

./coursera-dl compfinance-002
Downloading class: compfinance-002
Downloaded http://class.coursera.org/compfinance-002/lecture/index (216916 bytes)
Introduction
  Welcome_to_Introduction_to_Computational_Finance_and_Financial_Econometrics
Week_1-_Time_Value_of_Money
  1.0_Week_1_Introduction
Week_1-_Simple_Returns
  1.1_Future_Value_Present_Value_and_Compounding
  1.2_Asset_Returns
  1.3_Portfolio_Returns
  1.4_Dividends
  1.5_Inflation
  1.6_Annualizing_Returns
Week_1-_Continuously_Compounded_Returns
  1.7_Continuously_Compounded_Returns
  1.8_CC_Portfolio_Returns_and_Inflation
Week_1-_Excel_Examples
  1.9_Simple_Returns
  1.10_Getting_Financial_Data_from_Yahoo
  1.11_Return_Calculations
  1.12_Growth_of_1
Week_2-_Probability_Review
  2.0_Week_2_Introduction
  2.1_Univariate_Random_Variables
  2.2_Cumulative_Distribution_Function
  2.3_Quantiles
  2.4_Standard_Normal_Distribution
  2.5_Expected_Value_and_Standard_Deviation
  2.6_General_Normal_Distribution
  2.7_Standard_Deviation_as_a_Measure_of_Risk
  2.8_Normal_Distribution-_Appropriate_for_simple_returns
  2.9_Skewness_and_Kurtosis
  2.10_Students-t_Distribution
  2.11_Linear_Functions_of_Random_Variables
Week_2-_Example
  2.12_Value_at_Risk
Week_3-_Probability_Review_Continued
  3.0_Week_3_Introduction
  3.1_Location-scale_Model
  3.2_Bivariate_Discrete_Distributions
  3.3_Bivariate_Continuous_Distributions
  3.4_Covariance
  3.5_Correlation_and_the_Bivariate_Normal_Distribution
  3.6_Linear_Combination_of_2_Random_Variables
  3.7_Portfolio_Example
Week_3-_Matrix_Algebra
  3.8_Matrix_Algebra-_Review_Part_1
  3.9_Matrix_Algebra-_Review_Part_2
Week_4-_Matrix_Algebra_Continued
  4.0_Week_4_Introduction
  4.1_Matrix_Algebra-_Portfolio_Math
  4.2_Matrix_Algebra-_Bivariate_Normal
Week_4-_Time_Series_Concepts
  4.3_Time_Series_Concepts
  4.4_Autocorrelation
  4.5_White_Noise_Processes
  4.6_Nonstationary_Processes
  4.7_Moving_Average_Processes
  4.8_Autoregressive_Processes_Part_1
  4.9_Autoregressive_Processes_Part_2
Week_5-_Descriptive_Statistics
  5.0_Week_5_Introduction
  5.1_Covariance_Stationarity
  5.2_Histograms
  5.3_Sample_Statistics
  5.4_Empirical_CDF_and_QQ_plots
  5.5_Outliers_Part_1
  5.6_Outliers_Part_2
  5.7_Graphical_Measures
  5.8_Descriptive_Statistics_for_Daily_Data
Week_6-_Constant_Expected_Return_Model_and_Estimation
  6.0_Week_6_Introduction
  6.1_Constant_Expected_Return_Model
  6.2_Simulating_Data
  6.3_Random_Walk_Model
  6.4_Estimating_Parameters_of_CER
  6.5_Bias_and_Precision
  6.6_Mean_Squared_Error
  6.7_Standard_Errors
  6.8_Asymptotic_Properties_of_Estimators
  6.9_Confidence_Intervals
  6.10_Monte_Carlo_Simulation
  6.11_Value_at_Risk_in_CER_model
Week_7-_Bootstrapping
  7.0_Week_7_Introduction
  7.1_Bootstrap
  7.2_Performing_the_Bootstrap_in_R
  7.3_Boostrapping_VaR
Week_7-_Hypothesis_Testing
  7.4_Hypothesis_Testing-_Introduction
  7.5_Hypothesis_Testing-_Overview
  7.6_Hypothesis_Testing-_CER_Model
  7.7_Chi-square_and_Students_t_distributions
  7.8_Test_of_Specific_Coefficient_Value
  7.9_Test_for_Normal_Distribution
  7.10_Test_for_No_Autocorrelation
  7.11_Diagnostics_for_Constant_Parameters
Week_8-_Portfolio_Theory
  8.0_Week_8_Introduction
  8.1_Introduction_to_Portfolio_Theory
  8.2_Portfolio_Examples
  8.3_Portfolio_Value-at-Risk
  8.4_Portfolio_Frontier
  8.5_Efficient_Portfolios
  8.6_Minimum_Variance_Portfolio
  8.7_Portfolios_with_a_Risk_Free_Asset_Part_1
  8.8_Portfolios_with_a_Risk_Free_Asset_Part_2
  8.9_Tangency_Portfolio
  8.10_Examples
  8.11_Portfolio_Theory_with_Matrix_Algebra_Part_1
  8.12_Portfolio_Theory_with_Matrix_Algebra_Part_2
  8.13_Portfolio_Theory_with_Matrix_Algebra_Part_3
  Brief_Comment_about_Excel_Solver_Add-in
Week_9-_Portfolio_Theory_Computations
  9.0_Week_9_Introduction
  9.1_Computing_the_Portfolio_Frontier
  9.2_Computing_the_Tangency_Portfolio
  9.3_Mutual_Fund_Separation_Theorem_and_Examples
  9.4_Portfolio_Analysis_in_R
  9.5_Portfolio_Analysis_in_Excel_Part_1
  9.6_Portfolio_Analysis_in_Excel_Part_2
Week_9-_Portfolio_Theory_with_No_Short_Sales
  9.7_Portfolio_Theory_with_No_Short_Sales
  9.8_R_packages_for_Portfolio_Theory
  9.9_Using_Solve.QP()_in_R
  9.10_Global_minimum_variance
  9.11_Efficient_Frontier
Week_9-_Statistical_Analysis_of_Efficient_Portfolios
  9.12_Statistical_Analysis_of_Efficient_Portfolios
  9.13_Bootstrapping_Efficient_Portfolios
  9.14_Efficient_Portfolios_Over_Time
Week_10-_Portfolio_Risk_Budgeting
  10.0_Week_10_Introduction
  10.1_Portfolio_Risk_Budgeting
  10.2_Eulers_Theorem_and_Risk_Decomposition
  10.3_Risk_Decomposition_for_Portfolio_Volatility
  10.4_Using_and_Interpreting_Marginal_Contribution_to_Risk
  10.5_Beta
Week_10-_Single_Index_Model
  10.6_Sharpes_Single_Index_Model
  10.7_Statistical_Properties_of_the_Single_Index_Model
  10.8_Decomposition_of_Total_Variance
  10.9_The_Single_Index_Model_and_Portfolios
  10.10_Estimating_the_Single_Index_Model
  10.11_Examples_with_the_Single_Index_Model
  10.12_Least_Squares_Estimation_of_Single_Index_Model_Parameters
  10.13_Statistical_Properties_of_Least_Square_Estimates
  10.14_Using_Matrix_Algebra_with_the_Single_Index_Model
  10.15_A_Single_Index_Model_Portfolio_Example
  10.16_Estimating_the_Single_Index_Model_Covariance_Matrix
  10.17_Hypothesis_Testing_in_the_Single_Index_Model
Found 21 sections and 128 lectures on this page
Downloading: compfinance-002/01_Introduction/01_Welcome_to_Introduction_to_Computational_Finance_and_Financial_Econometrics.mp4
Downloading https://class.coursera.org/compfinance-002/lecture/download.mp4?lecture_id=31 -> compfinance-002/01_Introduction/01_Welcome_to_Introduction_to_Computational_Finance_and_Financial_Econometrics.mp4
23068672 bytes read (1.78MB/s)^CKeyboard Interrupt -- Removing partial file: compfinance-002/01_Introduction/01_Welcome_to_Introduction_to_Computational_Finance_and_Financial_Econometrics.mp4

from coursera-dl.

alvatar avatar alvatar commented on May 18, 2024

Hi,

Thanks for taking time testing it. Answering to the questions in the README:

  • I have the latest version of the script
  • the course is compfinance-002
  • command-line: python coursera-dl compfinance-002
    (but happens with variations like setting -u and -p, or -n)
  • the precise errors are what I pasted in the issue, no rewording
  • I'm doing it with both -u/-p and -n, same result
  • I'm using Python 2.7.3, Gentoo Linux

I've also tried with previous versions, like:
813ca9b
fe19882

...no luck! Same errors.

I had coursera-dl working a week ago...

what other info could I provide you?

from coursera-dl.

alvatar avatar alvatar commented on May 18, 2024

Another course:

python ./coursera-dl gametheory-2012-002
Downloading class: gametheory-2012-002
Downloaded http://class.coursera.org/gametheory-2012-002/lecture/index (126030 bytes)
Week_1-_Introduction_and_Overview
  1-1_Game_Theory_Intro_-_TCP_Backoff
  1-2_Self-Interested_Agents_and_Utility_Theory
  1-3_Defining_Games
  1-4_Examples_of_Games
  1-5_Nash_Equilibrium_Intro
  1-6_Strategic_Reasoning
  1-7_Best_Response_and_Nash_Equilibrium
  1-8_Nash_Equilibrium_of_Example_Games
  1-9_Dominant_Strategies
  1-10_Pareto_Optimality
Week_2-_Mixed-Strategy_Nash_Equilibrium
  2-1_Mixed_Strategies_and_Nash_Equilibrium_(I)
  2-2_Mixed_Strategies_and_Nash_Equilibrium_(II)
  2-3_Computing_Mixed_Nash_Equilibrium
  2-4_Hardness_Beyond_2x2_Games_-_Basic
  2-5_Example-_Mixed_Strategy_Nash
  2-6_Data-_Professional_Sports_and_Mixed_Strategies
Week_3-_Alternate_Solution_Concepts
  3-1_Beyond_the_Nash_Equilibrium
  3-2_Strictly_Dominated_Strategies__Iterative_Removal
Traceback (most recent call last):
  File "./coursera-dl", line 709, in <module>
    main()
  File "./coursera-dl", line 703, in main
    download_class(args, class_name)
  File "./coursera-dl", line 671, in download_class
    or tmp_cookie_file, args.reverse)
  File "./coursera-dl", line 283, in parse_syllabus
    assert vtag.a.contents[0], "couldn't get lecture name"
IndexError: list index out of range

from coursera-dl.

alvatar avatar alvatar commented on May 18, 2024

And another one. They all seem to produce the same failure:

python ./coursera-dl crypto-005         
Downloading class: crypto-005
Downloaded http://class.coursera.org/crypto-005/lecture/index (158020 bytes)
Introduction
  Course_Overview
  What_is_cryptography
  History_of_cryptography
  Discrete_probability_(Crash_course)
  Discrete_probability_(crash_course_cont.)
Stream_Ciphers
  Information_theoretic_security_and_the_one_time_pad
  Stream_ciphers_and_pseudo_random_generators
  Attacks_on_stream_ciphers_and_the_one_time_pad
  Real-world_stream_ciphers
  PRG_Security_Definitions
  Semantic_Security
  Stream_ciphers_are_semantically_secure
Block_Ciphers
  What_are_block_ciphers
  The_Data_Encryption_Standard
  Exhaustive_search_attacks
  More_attacks_on_block_ciphers
  The_AES_block_cipher
  Block_ciphers_from_PRGs
Using_Block_Ciphers
  Review-_PRPs_and_PRFs
Traceback (most recent call last):
  File "./coursera-dl", line 709, in <module>
    main()
  File "./coursera-dl", line 703, in main
    download_class(args, class_name)
  File "./coursera-dl", line 671, in download_class
    or tmp_cookie_file, args.reverse)
  File "./coursera-dl", line 283, in parse_syllabus
    assert vtag.a.contents[0], "couldn't get lecture name"
IndexError: list index out of range

from coursera-dl.

rbrito avatar rbrito commented on May 18, 2024

Can you save the page that you get? Perhaps adding:

with open('foo.html', 'w') as f:
    f.write()

Right after the beginning of function parse_syllabus?

Another try would be to see if you can get git bisect to see which was the first commit that broke things (if this is not dependent on coursera, of course).

Another thing that could perhaps be a reason for problems with be diacriticals in your name, but... I also have one in mine (é), which potentially excludes this possibility. Well, unless your system is not configured to work with utf-8 (see the output of locale).

Oh, and for the record, I also can download things from gametheory (which means that I don't see the problems that you are reporting a second time):

../coursera-dl --aria2_bin aria2c gametheory-2012-002 
Downloading class: gametheory-2012-002
Downloaded http://class.coursera.org/gametheory-2012-002/lecture/index (129122 bytes)
Week_1-_Introduction_and_Overview
  1-1_Game_Theory_Intro_-_TCP_Backoff
  1-2_Self-Interested_Agents_and_Utility_Theory
  1-3_Defining_Games
  1-4_Examples_of_Games
  1-5_Nash_Equilibrium_Intro
  1-6_Strategic_Reasoning
  1-7_Best_Response_and_Nash_Equilibrium
  1-8_Nash_Equilibrium_of_Example_Games
  1-9_Dominant_Strategies
  1-10_Pareto_Optimality
Week_2-_Mixed-Strategy_Nash_Equilibrium
  2-1_Mixed_Strategies_and_Nash_Equilibrium_(I)
  2-2_Mixed_Strategies_and_Nash_Equilibrium_(II)
  2-3_Computing_Mixed_Nash_Equilibrium
  2-4_Hardness_Beyond_2x2_Games_-_Basic
  2-5_Example-_Mixed_Strategy_Nash
  2-6_Data-_Professional_Sports_and_Mixed_Strategies
Week_3-_Alternate_Solution_Concepts
  3-1_Beyond_the_Nash_Equilibrium
  3-2_Strictly_Dominated_Strategies_amp_Iterative_Removal
  3-3_Dominated_Strategies_amp_Iterative_Removal-_An_Application
  3-4_Maxmin_Strategies
  3-5_Correlated_Equilibrium-_Intuition
Week_4-_Extensive-Form_Games
  4-1_Perfect_Information_Extensive_Form-_Taste
  4-2_Formalizing_Perfect_Information_Extensive_Form_Games
  4-3_Perfect_Information_Extensive_Form-_Strategies_BR_NE
  4-4_Subgame_Perfection
  4-5_Backward_Induction
  4-6_Subgame_Perfect_Application-_Ultimatum_Bargaining
  4-7_Imperfect_Information_Extensive_Form-_Poker
  4-8_Imperfect_Information_Extensive_Form-_Definition_Strategies
  4-9_Mixed_and_Behavioral_Strategies
  4-10_Incomplete_Information_in_the_Extensive_Form-_Beyond_Subgame_Perfection
Week_5-_Repeated_Games
  5-1_Repeated_Games
  5-2_Infinitely_Repeated_Games-_Utility
  5-3_Stochastic_Games
  5-4_Learning_in_Repeated_Games
  5-5_Equilibria_of_Infinitely_Repeated_Games
  5-6_Discounted_Repeated_Games
  5-7_A_Folk_Theorem_for_Discounted_Repeated_Games
Week_6-_Coalitional_Games
  6-1_Coalitional_Game_Theory-_Taste
  6-2_Coalitional_Game_Theory-_Definitions
  6-3_The_Shapley_Value
  6-4_The_Core
  6-5_Comparing_the_Core_and_Shapley_value_in_an_Example
Week_7-_Bayesian_Games
  7-1_Bayesian_Games-_Taste
  7-2_Bayesian_Games-_First_Definition
  7-3_Bayesian_Games-_Second_Definition
  7-4_Analyzing_Bayesian_Games
  7-5_Analyzing_Bayesian_Games-_Another_Example
Found 7 sections and 48 lectures on this page
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/01_1-1_Game_Theory_Intro_-_TCP_Backoff.pdf already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/01_1-1_Game_Theory_Intro_-_TCP_Backoff.mp4 already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/01_1-1_Game_Theory_Intro_-_TCP_Backoff.txt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/01_1-1_Game_Theory_Intro_-_TCP_Backoff.srt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/02_1-2_Self-Interested_Agents_and_Utility_Theory.pdf already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/02_1-2_Self-Interested_Agents_and_Utility_Theory.mp4 already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/02_1-2_Self-Interested_Agents_and_Utility_Theory.txt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/02_1-2_Self-Interested_Agents_and_Utility_Theory.srt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/03_1-3_Defining_Games.pdf already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/03_1-3_Defining_Games.mp4 already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/03_1-3_Defining_Games.txt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/03_1-3_Defining_Games.srt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/04_1-4_Examples_of_Games.pdf already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/04_1-4_Examples_of_Games.mp4 already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/04_1-4_Examples_of_Games.txt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/04_1-4_Examples_of_Games.srt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/05_1-5_Nash_Equilibrium_Intro.pdf already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/05_1-5_Nash_Equilibrium_Intro.mp4 already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/05_1-5_Nash_Equilibrium_Intro.txt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/05_1-5_Nash_Equilibrium_Intro.srt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/06_1-6_Strategic_Reasoning.pdf already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/06_1-6_Strategic_Reasoning.mp4 already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/06_1-6_Strategic_Reasoning.txt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/06_1-6_Strategic_Reasoning.srt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/07_1-7_Best_Response_and_Nash_Equilibrium.pdf already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/07_1-7_Best_Response_and_Nash_Equilibrium.mp4 already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/07_1-7_Best_Response_and_Nash_Equilibrium.txt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/07_1-7_Best_Response_and_Nash_Equilibrium.srt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/08_1-8_Nash_Equilibrium_of_Example_Games.pdf already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/08_1-8_Nash_Equilibrium_of_Example_Games.mp4 already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/08_1-8_Nash_Equilibrium_of_Example_Games.txt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/08_1-8_Nash_Equilibrium_of_Example_Games.srt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/09_1-9_Dominant_Strategies.pdf already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/09_1-9_Dominant_Strategies.mp4 already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/09_1-9_Dominant_Strategies.txt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/09_1-9_Dominant_Strategies.srt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/10_1-10_Pareto_Optimality.pdf already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/10_1-10_Pareto_Optimality.mp4 already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/10_1-10_Pareto_Optimality.txt already downloaded
gametheory-2012-002/01_Week_1-_Introduction_and_Overview/10_1-10_Pareto_Optimality.srt already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/01_2-1_Mixed_Strategies_and_Nash_Equilibrium_(I).pdf already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/01_2-1_Mixed_Strategies_and_Nash_Equilibrium_(I).mp4 already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/01_2-1_Mixed_Strategies_and_Nash_Equilibrium_(I).txt already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/01_2-1_Mixed_Strategies_and_Nash_Equilibrium_(I).srt already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/02_2-2_Mixed_Strategies_and_Nash_Equilibrium_(II).pdf already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/02_2-2_Mixed_Strategies_and_Nash_Equilibrium_(II).mp4 already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/02_2-2_Mixed_Strategies_and_Nash_Equilibrium_(II).txt already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/02_2-2_Mixed_Strategies_and_Nash_Equilibrium_(II).srt already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/03_2-3_Computing_Mixed_Nash_Equilibrium.pdf already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/03_2-3_Computing_Mixed_Nash_Equilibrium.mp4 already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/03_2-3_Computing_Mixed_Nash_Equilibrium.txt already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/03_2-3_Computing_Mixed_Nash_Equilibrium.srt already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/04_2-4_Hardness_Beyond_2x2_Games_-_Basic.pdf already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/04_2-4_Hardness_Beyond_2x2_Games_-_Basic.mp4 already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/04_2-4_Hardness_Beyond_2x2_Games_-_Basic.txt already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/04_2-4_Hardness_Beyond_2x2_Games_-_Basic.srt already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/05_2-5_Example-_Mixed_Strategy_Nash.pdf already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/05_2-5_Example-_Mixed_Strategy_Nash.mp4 already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/05_2-5_Example-_Mixed_Strategy_Nash.txt already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/05_2-5_Example-_Mixed_Strategy_Nash.srt already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/06_2-6_Data-_Professional_Sports_and_Mixed_Strategies.pdf already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/06_2-6_Data-_Professional_Sports_and_Mixed_Strategies.mp4 already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/06_2-6_Data-_Professional_Sports_and_Mixed_Strategies.txt already downloaded
gametheory-2012-002/02_Week_2-_Mixed-Strategy_Nash_Equilibrium/06_2-6_Data-_Professional_Sports_and_Mixed_Strategies.srt already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/01_3-1_Beyond_the_Nash_Equilibrium.pdf already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/01_3-1_Beyond_the_Nash_Equilibrium.mp4 already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/01_3-1_Beyond_the_Nash_Equilibrium.txt already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/01_3-1_Beyond_the_Nash_Equilibrium.srt already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/02_3-2_Strictly_Dominated_Strategies_amp_Iterative_Removal.pdf already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/02_3-2_Strictly_Dominated_Strategies_amp_Iterative_Removal.mp4 already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/02_3-2_Strictly_Dominated_Strategies_amp_Iterative_Removal.txt already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/02_3-2_Strictly_Dominated_Strategies_amp_Iterative_Removal.srt already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/03_3-3_Dominated_Strategies_amp_Iterative_Removal-_An_Application.pdf already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/03_3-3_Dominated_Strategies_amp_Iterative_Removal-_An_Application.mp4 already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/03_3-3_Dominated_Strategies_amp_Iterative_Removal-_An_Application.txt already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/03_3-3_Dominated_Strategies_amp_Iterative_Removal-_An_Application.srt already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/04_3-4_Maxmin_Strategies.pdf already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/04_3-4_Maxmin_Strategies.mp4 already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/04_3-4_Maxmin_Strategies.txt already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/04_3-4_Maxmin_Strategies.srt already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/05_3-5_Correlated_Equilibrium-_Intuition.pdf already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/05_3-5_Correlated_Equilibrium-_Intuition.mp4 already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/05_3-5_Correlated_Equilibrium-_Intuition.txt already downloaded
gametheory-2012-002/03_Week_3-_Alternate_Solution_Concepts/05_3-5_Correlated_Equilibrium-_Intuition.srt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/01_4-1_Perfect_Information_Extensive_Form-_Taste.pdf already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/01_4-1_Perfect_Information_Extensive_Form-_Taste.mp4 already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/01_4-1_Perfect_Information_Extensive_Form-_Taste.txt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/01_4-1_Perfect_Information_Extensive_Form-_Taste.srt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/02_4-2_Formalizing_Perfect_Information_Extensive_Form_Games.pdf already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/02_4-2_Formalizing_Perfect_Information_Extensive_Form_Games.mp4 already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/02_4-2_Formalizing_Perfect_Information_Extensive_Form_Games.txt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/02_4-2_Formalizing_Perfect_Information_Extensive_Form_Games.srt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/03_4-3_Perfect_Information_Extensive_Form-_Strategies_BR_NE.pdf already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/03_4-3_Perfect_Information_Extensive_Form-_Strategies_BR_NE.mp4 already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/03_4-3_Perfect_Information_Extensive_Form-_Strategies_BR_NE.txt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/03_4-3_Perfect_Information_Extensive_Form-_Strategies_BR_NE.srt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/04_4-4_Subgame_Perfection.pdf already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/04_4-4_Subgame_Perfection.mp4 already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/04_4-4_Subgame_Perfection.txt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/04_4-4_Subgame_Perfection.srt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/05_4-5_Backward_Induction.pdf already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/05_4-5_Backward_Induction.mp4 already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/05_4-5_Backward_Induction.txt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/05_4-5_Backward_Induction.srt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/06_4-6_Subgame_Perfect_Application-_Ultimatum_Bargaining.pdf already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/06_4-6_Subgame_Perfect_Application-_Ultimatum_Bargaining.mp4 already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/06_4-6_Subgame_Perfect_Application-_Ultimatum_Bargaining.txt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/06_4-6_Subgame_Perfect_Application-_Ultimatum_Bargaining.srt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/07_4-7_Imperfect_Information_Extensive_Form-_Poker.pdf already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/07_4-7_Imperfect_Information_Extensive_Form-_Poker.mp4 already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/07_4-7_Imperfect_Information_Extensive_Form-_Poker.txt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/07_4-7_Imperfect_Information_Extensive_Form-_Poker.srt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/08_4-8_Imperfect_Information_Extensive_Form-_Definition_Strategies.pdf already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/08_4-8_Imperfect_Information_Extensive_Form-_Definition_Strategies.mp4 already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/08_4-8_Imperfect_Information_Extensive_Form-_Definition_Strategies.txt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/08_4-8_Imperfect_Information_Extensive_Form-_Definition_Strategies.srt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/09_4-9_Mixed_and_Behavioral_Strategies.pdf already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/09_4-9_Mixed_and_Behavioral_Strategies.mp4 already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/09_4-9_Mixed_and_Behavioral_Strategies.txt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/09_4-9_Mixed_and_Behavioral_Strategies.srt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/10_4-10_Incomplete_Information_in_the_Extensive_Form-_Beyond_Subgame_Perfection.pdf already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/10_4-10_Incomplete_Information_in_the_Extensive_Form-_Beyond_Subgame_Perfection.mp4 already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/10_4-10_Incomplete_Information_in_the_Extensive_Form-_Beyond_Subgame_Perfection.txt already downloaded
gametheory-2012-002/04_Week_4-_Extensive-Form_Games/10_4-10_Incomplete_Information_in_the_Extensive_Form-_Beyond_Subgame_Perfection.srt already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/01_5-1_Repeated_Games.pdf already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/01_5-1_Repeated_Games.mp4 already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/01_5-1_Repeated_Games.txt already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/01_5-1_Repeated_Games.srt already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/02_5-2_Infinitely_Repeated_Games-_Utility.pdf already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/02_5-2_Infinitely_Repeated_Games-_Utility.mp4 already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/02_5-2_Infinitely_Repeated_Games-_Utility.txt already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/02_5-2_Infinitely_Repeated_Games-_Utility.srt already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/03_5-3_Stochastic_Games.pdf already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/03_5-3_Stochastic_Games.mp4 already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/03_5-3_Stochastic_Games.txt already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/03_5-3_Stochastic_Games.srt already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/04_5-4_Learning_in_Repeated_Games.pdf already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/04_5-4_Learning_in_Repeated_Games.mp4 already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/04_5-4_Learning_in_Repeated_Games.txt already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/04_5-4_Learning_in_Repeated_Games.srt already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/05_5-5_Equilibria_of_Infinitely_Repeated_Games.pdf already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/05_5-5_Equilibria_of_Infinitely_Repeated_Games.mp4 already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/05_5-5_Equilibria_of_Infinitely_Repeated_Games.txt already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/05_5-5_Equilibria_of_Infinitely_Repeated_Games.srt already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/06_5-6_Discounted_Repeated_Games.pdf already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/06_5-6_Discounted_Repeated_Games.mp4 already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/06_5-6_Discounted_Repeated_Games.txt already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/06_5-6_Discounted_Repeated_Games.srt already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/07_5-7_A_Folk_Theorem_for_Discounted_Repeated_Games.pdf already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/07_5-7_A_Folk_Theorem_for_Discounted_Repeated_Games.mp4 already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/07_5-7_A_Folk_Theorem_for_Discounted_Repeated_Games.txt already downloaded
gametheory-2012-002/05_Week_5-_Repeated_Games/07_5-7_A_Folk_Theorem_for_Discounted_Repeated_Games.srt already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/01_6-1_Coalitional_Game_Theory-_Taste.pdf already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/01_6-1_Coalitional_Game_Theory-_Taste.mp4 already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/01_6-1_Coalitional_Game_Theory-_Taste.txt already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/01_6-1_Coalitional_Game_Theory-_Taste.srt already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/02_6-2_Coalitional_Game_Theory-_Definitions.pdf already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/02_6-2_Coalitional_Game_Theory-_Definitions.mp4 already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/02_6-2_Coalitional_Game_Theory-_Definitions.txt already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/02_6-2_Coalitional_Game_Theory-_Definitions.srt already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/03_6-3_The_Shapley_Value.pdf already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/03_6-3_The_Shapley_Value.mp4 already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/03_6-3_The_Shapley_Value.txt already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/03_6-3_The_Shapley_Value.srt already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/04_6-4_The_Core.pdf already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/04_6-4_The_Core.mp4 already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/04_6-4_The_Core.txt already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/04_6-4_The_Core.srt already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/05_6-5_Comparing_the_Core_and_Shapley_value_in_an_Example.pdf already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/05_6-5_Comparing_the_Core_and_Shapley_value_in_an_Example.mp4 already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/05_6-5_Comparing_the_Core_and_Shapley_value_in_an_Example.txt already downloaded
gametheory-2012-002/06_Week_6-_Coalitional_Games/05_6-5_Comparing_the_Core_and_Shapley_value_in_an_Example.srt already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/01_7-1_Bayesian_Games-_Taste.pdf already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/01_7-1_Bayesian_Games-_Taste.mp4 already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/01_7-1_Bayesian_Games-_Taste.txt already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/01_7-1_Bayesian_Games-_Taste.srt already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/02_7-2_Bayesian_Games-_First_Definition.pdf already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/02_7-2_Bayesian_Games-_First_Definition.mp4 already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/02_7-2_Bayesian_Games-_First_Definition.txt already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/02_7-2_Bayesian_Games-_First_Definition.srt already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/03_7-3_Bayesian_Games-_Second_Definition.pdf already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/03_7-3_Bayesian_Games-_Second_Definition.mp4 already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/03_7-3_Bayesian_Games-_Second_Definition.txt already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/03_7-3_Bayesian_Games-_Second_Definition.srt already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/04_7-4_Analyzing_Bayesian_Games.pdf already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/04_7-4_Analyzing_Bayesian_Games.mp4 already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/04_7-4_Analyzing_Bayesian_Games.txt already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/04_7-4_Analyzing_Bayesian_Games.srt already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/05_7-5_Analyzing_Bayesian_Games-_Another_Example.pdf already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/05_7-5_Analyzing_Bayesian_Games-_Another_Example.mp4 already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/05_7-5_Analyzing_Bayesian_Games-_Another_Example.txt already downloaded
gametheory-2012-002/07_Week_7-_Bayesian_Games/05_7-5_Analyzing_Bayesian_Games-_Another_Example.srt already downloaded

Honestly, if the points that I raised above don't help, I really don't know what may be happening... The only other thing that I can think of is perhaps some geolocation thing?

from coursera-dl.

alvatar avatar alvatar commented on May 18, 2024

Hi,

Thanks a lot for your help.

  • I've tried creating a new user. Nothing.
  • I've tried finding the commit that introduced the bug: no luck. I get the same error up to 2 months back, but it worked flawlessly 1-2 weeks ago, so it wasn't a commit that introduced a regression.
  • I saved the page as foo.html, as you suggested. It seems to save well, and it's 3000+ lines of html
  • I actually don't use the diacriticals in my name, althought it has them in spanish. Also: locale.getdefaultlocale() yields:
    ('en_US', 'UTF-8')

Could this be an error coming from beautiful soup?
I'm using version 4.1.3

from coursera-dl.

alvatar avatar alvatar commented on May 18, 2024

Found it.

It could be a bug coming from Beautiful Soup 4.1.3:

When I print vtag.a
after line 282: for vtag in stag.nextSibling.findAll('li'):

I see:

<a data-lecture-id="19" data-modal=".course-mo" data-modal-iframe="https://class.coursera.org/crypto-005/lecture/view?lecture_id=19" href="https://class.coursera.org/crypto-005/lecture/19"></a>

But original web page shows:

<a data-lecture-id="19"
   data-modal-iframe="https://class.coursera.org/crypto-005/lecture/view?lecture_id=19"
   href="https://class.coursera.org/crypto-005/lecture/19"
   data-modal=".course-modal-frame"
   rel="lecture-link"
   class="lecture-link">
Modes of operation: one time key (8 min)</a>

You couldn't reproduce it becuase Beautiful Soup 3 doesn't have this problem. In the code:

try:
    from BeautifulSoup import BeautifulSoup
except ImportError:
    from bs4 import BeautifulSoup

you first try with Beautiful Soup 3, otherwise it imports BS4. This fallback was causing my issue. It will happen to those who don't have Beautiful Soup 3 installed but do have BS4.

This took me some time... I don't know much Python. Seems a cute newbie-welcoming language though :)

from coursera-dl.

fgsalomon avatar fgsalomon commented on May 18, 2024

Same problem here:

Downloading class: compphoto-001/
Downloaded https://class.coursera.org/compphoto-001//lecture/index (113937 bytes)
Module_0
  0.0_-_More_About_the_Class_6-40
  0.1_-_What_is_Computational_Photography_I_12-01
  0.2_-_What_is_Computational_Photography_II-_Dual_Photography_7-29
  0.3_-_What_is_Computational_Photography_II-_Panoramas_9-11
  0.4_-_Why_Study_Computational_Photography_11-40
  TA_Intro_0-18
  Tutorial_0.0
  Tutorial_0.1
  Tutorial_0.2
Module_1
  1.0_-_Digital_Images_-_What_is_a_Digital_Image11-05
  1.1_-_Image_Processing_and_Filtering_-_Point_Processes_9-14
  1.2_-_Image_Processing_and_Filtering_-_Smoothing_12-40
  1.3_-_Image_Processing_and_Filtering_-_Convolution_and_Cross-Correlation_11-12
  1.4_-_Image_Processing_and_Filtering_-_Gradients_15-12
  1.5_-_Image_Processing_and_Filtering_-_Edges_11-43
  Tutorial_1.0
  Tutorial_1.1
Traceback (most recent call last):
  File "coursera_dl.py", line 978, in <module>
    main()
  File "coursera_dl.py", line 968, in main
    if download_class(args, class_name):
  File "coursera_dl.py", line 930, in download_class
    or tmp_cookie_file, args.reverse)
  File "coursera_dl.py", line 467, in parse_syllabus
    assert vtag.a.contents[0], "couldn't get lecture name"
IndexError: list index out of range
Downloading class: introstats-001
Downloaded https://class.coursera.org/introstats-001/lecture/index (117622 bytes)
Week_1-_Summarising_Data
  1.1_Introduction
  1.2_Five_Number_Summary
  1.3_The_Centre_of_the_Data_and_the_Effects_of_Extreme_Values
  1.4_The_Spread_of_the_Data
  1.5_The_Shape_of_the_Data
  1.6_Categorical_Variables
  1.7_Some_Features_of_Data
Optional_R_Videos_for_Week_1
  Installing_R_-_Mac_OSX
  Installing_R_-_PC
  R_tutorial_for_1.2_Five_Number_Summary
  R_tutorial_for_1.3_The_Centre_of_The_Data
  R_tutorial_for_1.4_The_Spread_of_The_Data
  R_tutorial_for_1.5_The_Shape_of_The_Data
  R_tutorial_for_1.6_Categorical_Variables
Week_2-_Relationships_and_Data_Collection
  2.1_Relationships_Between_Quantitative_and_Categorical_Variables
  2.2_Examining_Relationships_Between_Two_Categorical_Variables
Traceback (most recent call last):
  File "coursera_dl.py", line 978, in <module>
    main()
  File "coursera_dl.py", line 968, in main
    if download_class(args, class_name):
  File "coursera_dl.py", line 930, in download_class
    or tmp_cookie_file, args.reverse)
  File "coursera_dl.py", line 467, in parse_syllabus
    assert vtag.a.contents[0], "couldn't get lecture name"
IndexError: list index out of range
fran@fran-K55VM:~/Descargas$ python2.7 coursera_dl.py -u user -p pass compphoto-001/
Downloading class: compphoto-001/
Downloaded https://class.coursera.org/compphoto-001//lecture/index (113937 bytes)
Module_0
  0.0_-_More_About_the_Class_6-40
  0.1_-_What_is_Computational_Photography_I_12-01
  0.2_-_What_is_Computational_Photography_II-_Dual_Photography_7-29
  0.3_-_What_is_Computational_Photography_II-_Panoramas_9-11
  0.4_-_Why_Study_Computational_Photography_11-40
  TA_Intro_0-18
  Tutorial_0.0
  Tutorial_0.1
  Tutorial_0.2
Module_1
  1.0_-_Digital_Images_-_What_is_a_Digital_Image11-05
  1.1_-_Image_Processing_and_Filtering_-_Point_Processes_9-14
  1.2_-_Image_Processing_and_Filtering_-_Smoothing_12-40
  1.3_-_Image_Processing_and_Filtering_-_Convolution_and_Cross-Correlation_11-12
  1.4_-_Image_Processing_and_Filtering_-_Gradients_15-12
  1.5_-_Image_Processing_and_Filtering_-_Edges_11-43
  Tutorial_1.0
  Tutorial_1.1
Traceback (most recent call last):
  File "coursera_dl.py", line 978, in <module>
    main()
  File "coursera_dl.py", line 968, in main
    if download_class(args, class_name):
  File "coursera_dl.py", line 930, in download_class
    or tmp_cookie_file, args.reverse)
  File "coursera_dl.py", line 467, in parse_syllabus
    assert vtag.a.contents[0], "couldn't get lecture name"
IndexError: list index out of range

Using Ubuntu 13.04 with python2.7 (Beautiful Soup version is 4.1.2). In other PC with Archlinux (python2.7 and Beautiful Soup 3.2) works OK for the same user and courses.

Using the coursera-dl version from commit 942899d

PS: Thank you for this useful script!

from coursera-dl.

rbrito avatar rbrito commented on May 18, 2024

Hi.

Is this fixed given the pull request in #91? Can we close this bug?

from coursera-dl.

fgsalomon avatar fgsalomon commented on May 18, 2024

Yeah, it works like a charm ;)

from coursera-dl.

rbrito avatar rbrito commented on May 18, 2024

@fgsalomon, great. Closing it.

from coursera-dl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.