Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: add asynchronous api #44

Merged
merged 20 commits into from
Nov 23, 2024
Merged

refactor: add asynchronous api #44

merged 20 commits into from
Nov 23, 2024

Conversation

ivansaul
Copy link
Owner

No description provided.

Improves helper functions for better readability and maintainability, replaces legacy functions with cleaner alternatives and removes redundant comments and unused code.
Add models for `Resource`, `Video`, `Lecture`, `Unit`, `Chapter`, and `Course` to represent facilito resources.
Includes `Quality` and `TypeUnit` enums for better data organization.
Introduces a hierarchy of custom error classes (BaseError, LoginError, VideoError, UnitError, CourseError) for improved error handling and clarity.
Add functions for handling login, asynchronous requests, saving and loading browser state, progressive scrolling, and saving web pages as mhtml.
Add necessary constants for the Facilito application, including URLs for different endpoints and the session directory.
Implements asynchronous functions for fetching course, unit, and video data from the Facilito platform.
Implements an asynchronous API class for interacting with the Facilito platform, using Playwright for browser automation. Includes methods for login, fetching units and courses, and handling authentication.
Adds tests for `clean_string`, `hashify`, and `slugify` functions.
Update various dependencies to newer versions, add  tools for code quality, testing, debugging and introduces colorlog, unidecode, and playwright-stealth
Implements `login`, `logout`, and `download` commands for interacting with the facilito API.
These commands provide a command-line interface for common tasks.
Adds GitHub Actions workflows for testing and releasing packages, Integrates semantic-release for automated versioning and PyPI uploads.
Add handling to expand all course chapters
Improve download performance by introducing a configurable number of threads. Allows users to control the number of concurrent downloads from 1 to 16.
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots

See analysis details on SonarQube Cloud

@ivansaul ivansaul merged commit d6d7d91 into master Nov 23, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant