techtanic / Discounted-Udemy-Course-Enroller

A script/software for automatically enrolling/joining 100% discounted Udemy courses for free. Get Paid Udemy courses for free with just a few clicks.
https://duce.techtanic.space
MIT License
785 stars 227 forks source link

[Bug]: TypeError: 'NoneType' object is not subscriptable #122

Closed bugbounted closed 1 year ago

bugbounted commented 2 years ago

What happened?

Trying to login Traceback (most recent call last): File "C:\Users\Administrator\Desktop\CLI\duce.py", line 642, in head, user, currency, s, txt = check_login(email, password) File "C:\Users\Administrator\Desktop\CLI\duce.py", line 358, in check_login csrf_token = soup.find("input", {"name": "csrfmiddlewaretoken"})["value"] TypeError: 'NoneType' object is not subscriptable

Enroller

CLI

OS

Windows

Relevant log output

Trying to login
Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\CLI\duce.py", line 642, in <module>
    head, user, currency, s, txt = check_login(email, password)
  File "C:\Users\Administrator\Desktop\CLI\duce.py", line 358, in check_login
    csrf_token = soup.find("input", {"name": "csrfmiddlewaretoken"})["value"]
TypeError: 'NoneType' object is not subscriptable

Terms

SammyCode-sudo commented 2 years ago

replace csrf_token = soup.find("input", {"name": "csrfmiddlewaretoken"})["value"] with csrf_token = r.cookies["csrftoken"]

github-actions[bot] commented 2 years ago

This Issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] commented 2 years ago

This Issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] commented 2 years ago

This Issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] commented 2 years ago

This Issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] commented 2 years ago

This Issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

lucasvperini commented 2 years ago

I'm having the same issue. Any fix?

github-actions[bot] commented 2 years ago

This Issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] commented 2 years ago

This Issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] commented 2 years ago

This Issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] commented 2 years ago

This Issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.