yappymedia 1.0.0
YappyMedia is an unofficial, Python module for yappy.media.
Requires Python: >=3.9

# YappyMedia
YappyMedia is an unofficial, Python library for yappy.media. This module utilizes Selenium for data retrieval. With yappymedia, you can easily obtain information about videos or profiles and download videos from profiles.
## Installation
To install the YappyMedia, you can use either `pip install yappymedia` or download the repository and install it from there.

# Usage
```
from yappymedia import Profile

url = 'https://yappy.media/profile/59a0c8c485e5410b9c43474bf4c6a373' 

profile = Profile(url)
video_id_list = profile.get_all_video_ids()
username = profile.get_username()

print(len(video_id_list))
print(username)
```
The **`Profile`** class accepts one mandatory parameter, `url`, which should contain the profile's URL. Additionally, you can use the `hide_browser` parameter to show or hide the browser. The `hide_browser` parameter only accepts `True` or `False` values, with the default value being `True`.

| Method | Parameter | Description |
| --- | :---: | --- |
| `get_all_video_ids()` | delay | The method returns a list of all video IDs from the profile. It can also accept a `delay` parameter, which determines the time delay for scrolling the page downwards. If you are not getting a complete list of video IDs, you can specify a higher value for the `delay` parameter. Please note that the process may take a significant amount of time, especially if the profile contains a large number of videos. |
| `get_username` |  | The method returns the username of the profile. |
| `get_name` |  | The method returns the name of the profile. |
| `get_number_of_follows` |  | The method returns the number of profiles that the profile owner is following. |
| `get_number_of_subscribers` |  | The method returns the number of subscribers (followers) of the profile. |
| `get_number_of_reuses` |  | The method returns the number of reuses mentioned in the profile information. |
| `get_number_of_collabs` |  | The method returns the number of collaborations associated with the profile owner. |
| `get_description` |  | The method returns the description of the profile. |

### Video
```
from yappymedia import Video

video = Video('bac41b0555ce43c7b273c591db522cdf')

description = video.get_description()
print(description)

video.download()
```
The **`Video`** class accepts one mandatory parameter, `video_id`, which should contain the video ID. Additionally, you can use the `hide_browser` parameter to show or hide the browser. The `hide_browser` parameter only accepts `True` or `False` values, with the default value being `True`.

| Method | Parameter | Description |
| --- | :---: | --- |
| `get_link_by_id` | video_id | The method has one mandatory parameter, `video_id`, which should contain the video ID. It returns the link to the video with the provided ID. |
| `get_file_url` |  | The method returns the direct file URL of the video. |
| `get_creation_date` |  | The method returns the creation date of the video. |
| `get_description` |  | The method returns the description of the video. |
| `download` |  | The method downloads the video to the current directory. It has three optional parameters: `path_to_save`, `name`, and `save_with_date`. The `path_to_save` parameter should contain the path where the file will be saved. You can use the `name` parameter to specify a custom name for the file. The `save_with_date` parameter accepts either `True` or `False`. When set to `True`, it adds the video's creation date to the file name. By default, the `save_with_date` parameter is set to `False`. |