semvec/pypi-packages huggingface dataset:
you-live 1.1.5
A站/B站/斗鱼/快手 直播视频录制
License: MIT

you-live
===========================
![](https://img.shields.io/badge/Python-3-green.svg) ![](https://img.shields.io/badge/require-requests-green.svg)![](https://img.shields.io/badge/require-PyExecJS-green.svg)
### Live Recorder
A live recorder focus on China mainland livestream sites.   
Brother Repo of [BilibiliLiveRecorder](https://github.com/nICEnnnnnnnLee/BilibiliLiveRecorder)(java)  

    
****
## :dolphin:Installation
```
Linux/debian:

    sudo apt-get install python3-pip
    pip3 install you-live --upgrade --user
    add ~/.local/bin to your PATH

Windows:

    install python3 from python.org
    pip install --upgrade you-live

Other Linux: please follow debian

Other OS: please DIY.
```

## :dolphin:Usage
```
you-live [-h] [-qn QN] [-debug] [-check] [-delete] [-save_path SAVE_PATH] [-check_path CHECK_PATH]
                [-format FORMAT] [-time_format TIME_FORMAT] [-cookies COOKIES] [-cookies_path COOKIES_PATH]
                liver id

B站/斗鱼/快手 直播视频录制

positional arguments:
  liver                 要录制的直播源，如 bili,douyu,kuaishou,acfun
  id                    要录制的房间号，可以从url中直接获取

optional arguments:
  -h, --help            show this help message and exit
  -qn QN, -q QN         录制的清晰度，可以后续输入
  -only_url, -ou        仅输出录制链接，然后退出
  -debug                debug模式
  -check                校准时间戳
  -delete, -d           删除原始文件
  -save_path SAVE_PATH, -sp SAVE_PATH
                        源文件保存路径
  -check_path CHECK_PATH, -chp CHECK_PATH
                        校正后的FLV文件保存路径
  -format FORMAT, -f FORMAT
                        文件命名格式
  -time_format TIME_FORMAT, -tf TIME_FORMAT
                        时间格式
  -cookies COOKIES, -c COOKIES
                        cookie, 当cookies_path未指定时生效
  -cookies_path COOKIES_PATH, -cp COOKIES_PATH
                        指定cookie文件位置
```

### Example0
Record a live from <https://live.bilibili.com/6>
```
you-live bili 6
```

### Example1
Record a live from <https://www.douyu.com/593392>, correct the timestamp error and delete the origin files.
```
you-live -check -d douyu 593392
```
**Notice**:The record on this site(douyu) uses PyExecJS.  
You may need some extra installation about the JS Environment for linux OS.  
Here’s the guide for [Node.js installation](https://github.com/nodesource/distributions)  


**Notice**:You may need logged-in cookies to get high quality videos

### Example2
Record a live from <https://live.kuaishou.com/u/ZFYS8888>, speicify the file name you want.
```
you-live -format "{name}-{shortId} 的{liver}直播{startTime}" -cookies "clientid=3; did=web_0000000000000000000000000000000; client_key=00000000; xxx=xxx; ..." kuaishou ZFYS8888
```
**Notice**:You must need cookies(may not logged-in, just skip the captha test) to get room detail information


## :dolphin:LICENSE
MIT
mailify 1.0.0
Simple library to write python emails
License: MIT

# Mailer Module

## Overview

The Mailer module is a configurable Python class that handles email functionalities across an application. It provides robust features for sending emails with HTML templates, attachments, and scheduling, as well as reading emails with advanced filtering capabilities.

## Features

- Send emails with HTML templates
- Dynamic HTML template rendering
- Attachment support
- CC and BCC email support
- Email validation
- Email scheduling
- Email reading with filtering
- IMAP and SMTP support

## Installation

### Dependencies

- Python 3.7+
- Required libraries:
  - `Pillow` (PIL)
  - `beautifulsoup4`

Install dependencies using pip:
```bash
pip install Pillow beautifulsoup4
```

## Usage

### Initializing the Mailer

```python
from mailify import Mailer

mailer = Mailer(
    sender_email="your_email@example.com",
    password="your_password",
    sender_name="Your Name",
    port=587,
    smtp_server="smtp.gmail.com"
)
```

### Sending an Email

```python
result = mailer.send_email(
    subject="Welcome",
    html_template="app/templates/welcome",
    recipients=["recipient@example.com"],
    data={"name": "John Doe"},
    cc_email=["cc@example.com"],
    bcc_email=["bcc@example.com"]
)
```

### Scheduling an Email

```python
result = mailer.schedule_email(
    subject="Delayed Notification",
    html_template="app/templates/notification",
    recipients=["recipient@example.com"],
    delay_seconds=3600  # Send after 1 hour
)
```

### Reading Emails

```python
emails = mailer.read_emails(
    username="your_email@example.com",
    password="your_password",
    folder="INBOX",
    limit=5,
    filter_criteria={
        "from": "sender@example.com",
        "subject": "Important"
    },
    mark_as_read=True
)
```


## Important Notes

- Use app-specific passwords for Gmail
- Ensure HTML templates are properly formatted
- Handle exceptions when sending or reading emails

## Security

- Never hardcode sensitive information like passwords
- Use environment variables or secure credential management

## Limitations

- Requires internet connectivity
- Email sending/reading depends on SMTP/IMAP server availability

## Contributing

Contributions are welcome! Please submit pull requests or open issues on the project repository.

## License

[Add your project's license information]