-
Notifications
You must be signed in to change notification settings - Fork 46
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Quality Gate failedFailed conditions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.