Questions tagged [coursera-api]

For questions about the Coursera App Platform, accessed programmatically.

Use this tag if you have questions about programming against the Coursera App Platform.

Do not use this tag for any problem you may have with homework for a Coursera course. Just use language and technology specific tags, there is no need to tag your question with the site you are using to learn.

74 questions
0
votes
1 answer

Parse a webpage with BeautifulSoup4

I try to parse this webpage from Coursera and download all the visible text from the page. Unfortunately, BeautifulSoup4 doesn't seem to work and I don't know what else to do. Let me explain Here is the code: from bs4 import BeautifulSoup import…
Sfinos
  • 279
  • 4
  • 15
-1
votes
1 answer

Unable to install coursera-dl

I accidentally deleted a file I think called coursera-dl.exe from C:\python310\lib\site-packages. I tried to uninstall it using: pip uninstall coursera-dl it showed this warning: WARNING: Ignoring invalid distribution -oursera-dl…
-1
votes
2 answers

How to solve the total amount of seconds using python

I am learning python as a novice and I was asked to solve the total of seconds in the problem. I was given the format but it still seems that I can not get a hand of it. it keeps telling me that I didn't get the minute and seconds part I tried…
-1
votes
1 answer

Difference between X.reshape(X.shape[0], -1).T & X.reshape(-1, X.shape[0])

I am trying to solve the programming assessment: Logistic Regression with a Neural Network Mindset from the week2 of 'Neural network & deep learning course' by Andrew NG on coursera. This is the code: # X.reshape(X.shape[0],…
-1
votes
3 answers

Getting minimum and maximum from inputs

I do not inderstand what is wrong with this code. It works well for the largest, but not the smallest. And both line of codes are the same! I am new here and new to programming as well, pardon my inexperence . Please note that I need to solve this…
-1
votes
3 answers

How to resolve octave machine learning submission error?

How to resolve submission error: curl: (6) Couldn't resolve host 'www-origin.coursera.org' m = 15 error] submission with curl() was not successful !! Submission failed: Grader sent no response Function:…
-1
votes
2 answers

ex 9.4 python coursera

Currently working on this for Coursera's Python For everybody class. This is ex 9.4. For some reason the emcount is double what it is supposed to be when ran. The problem seems to start early on since line has double the amount it should. Does…
efish
  • 1
  • 1
  • 1
-1
votes
1 answer

unable to access localhost URL of AWS from local machine

I have a AWS EC2 instance running and I am supposed to access the localhost URL of the instance. Whenever I try the localhost:port/index.html URL I get a server not responding error. I tried using the public IP of the instance instead, but that…
user4002112
  • 141
  • 1
  • 2
  • 18
-1
votes
1 answer

why i failed to login coursera using requests library?

the code i use is as follows: import requests url='https://accounts.coursera.org/api/v1/login' s=requests.session() r0=s.get('https://www.coursera.org/') print r0.cookies.keys() print 'get homepage' payload={'email': 'use_your_email', 'password':…
worldhello
  • 87
  • 1
  • 8
-2
votes
4 answers

why do I keep getting a bad input error on line five? are my variables alright? the declaration of function?

here is my code def computepay(h,r): if h>40.0: OT = 1.5*float(r) p=OT else: ck = float(h)*float(r) p=ck return 'p' hrs = input("Enter Hours:") rate = input("Enter rate:") h = float(hrs) r…
-2
votes
2 answers

Solving Maxium Pairwise Product using Sort Method

I am trying to solve the maximum pairwise product problem by first sorting the vector and then multiplying the last two elements of the vector. It works fine for the smaller digits but not for the 10^5 digits. Can anyone please look it out and…
-2
votes
1 answer

Error using coursera-dl in windows

I am trying to use coursera-dl in windows to download coursera videos. I have installed coursera-dl in C:\Python34\Scripts but when i try do coursera-dl -u xxx@live.com -p yyyy gamification-003 i am getting the below error: importerror: no module…
GeorgeOfTheRF
  • 8,244
  • 23
  • 57
  • 80
-3
votes
2 answers

How do I answer this Coursera python question

I am very new to coding and currently attempting to teach myself how to code via coursera. I am on the week 2 problems and cannot get the code to work, and coursera does not show any solutions ever even if you get it wrong. Any explanation on how to…
Za123
  • 3
  • 1
-7
votes
1 answer

Solutions of coursera ruby on rails assignment

I am doing a specialization in rails .Its assignment is related to find maximum frequency words.I solve it all but it cant pass one test out of 19.Anybody doing that?
user5598490
1 2 3 4
5