https://github.com/hudsonbrendon/pyudemy
Simple integrate of API udemy.com with python
https://github.com/hudsonbrendon/pyudemy
api python udemy wrapper
Last synced: about 2 months ago
JSON representation
Simple integrate of API udemy.com with python
- Host: GitHub
- URL: https://github.com/hudsonbrendon/pyudemy
- Owner: hudsonbrendon
- License: mit
- Created: 2018-02-10T20:58:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-24T20:28:38.000Z (2 months ago)
- Last Synced: 2025-03-30T03:03:11.229Z (2 months ago)
- Topics: api, python, udemy, wrapper
- Language: Python
- Size: 262 KB
- Stars: 40
- Watchers: 6
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pyudemy
[](https://github.com/hudsonbrendon/pyudemy/actions/workflows/pythonpackage.yml)
[](https://github.com/hudsonbrendon/pyudemy/issues?sort=updated&state=open)
Simple integrate of API udemy.com with python
# NOTICE
**Access to the Affiliate API on Udemy has been discontinued as of January 1, 2025. To access the Affiliate API, please see our instructions on how to join the [Udemy Affiliate Program](https://partnersupport.udemy.com/hc/en-us/articles/360048655014-How-do-I-Join-the-Udemy-Affiliate-Program/).**
# Quick start
```bash
$ pip install pyudemy
```
# AuthenticationTo make any calls to Udemy REST API, you will need to create an API client. API client consists of a bearer token, which is connected to a user account on Udemy.
If you want to create an API client, [Sign up on udemy.com](https://www.udemy.com/join/) and go to API Clients page in your user profile. Once your API client request is approved, your newly created [API client](https://www.udemy.com/user/edit-api-clients/) will be active and your bearer token will be visible on [API Clients](https://www.udemy.com/user/edit-api-clients/) page.
# Usage
With your key in hand, it's time to authenticate, so run:
```python
>>> from pyudemy import Udemy>>> udemy = UdemyAffiliate(, )
```# Courses
Returns list of courses.
To see the list of accepted parameters go to:
[https://www.udemy.com/developers/methods/get-courses-list/](https://www.udemy.com/developers/methods/get-courses-list/)```python
>>> udemy.courses()
```
or```python
>>> udemy.courses(page=1, page_size=1, ...)
```# Course detail
Returns course with specified id.
To see the list of accepted parameters go to:
[https://www.udemy.com/developers/methods/get-courses-detail/](https://www.udemy.com/developers/methods/get-courses-detail/)```python
>>> udemy.course_detail()
```# Public curriculum
Returns list of curriculum items.
To see the list of accepted parameters go to:
[https://www.udemy.com/developers/methods/get-publiccurriculum-list/](https://www.udemy.com/developers/methods/get-publiccurriculum-list/)```python
>>> udemy.public_curriculum()
```
or```python
>>> udemy.public_curriculum(, page=1, page_size=1)
```# Course reviews
Returns list of curriculum items.
To see the list of accepted parameters go to:
[https://www.udemy.com/developers/methods/get-coursereviews-list/](https://www.udemy.com/developers/methods/get-coursereviews-list/)```python
>>> udemy.course_reviews()
```
or```python
>>> udemy.course_reviews(, page=1, page_size=1)
```
# Controlling return DataYou can now control the return data from the API using a list of dictionaries passed under a parameter called "fields".
For more info check Use of Fields and Field Lists at https://www.udemy.com/developers/affiliate/
# License
[MIT](http://en.wikipedia.org/wiki/MIT_License)