semvec/pypi-packages huggingface dataset:
wcap 0.3.0
Capture web pages as images using Selenium and the Firefox webdriver.
Requires Python: >=3.10
Keywords: firefox, html to image, screenshot, selenium, webpage to image

# wcap

Capture web pages as images using Selenium and the Firefox webdriver.

# Usage

    wcap --dimensions 1500x1100 --wait 5 https://ukealong.com/key/c/ img/c.png

If Firefox is installed as a Snap on Ubuntu, you need to set the binary location.

    wcap --dimensions 1500x1100 --wait 5 --binary-location /snap/firefox/current/usr/lib/firefox/firefox https://ukealong.com/key/c/ img/c.png

# Installation

    pip install wcap

In order for `wcap` to work you need to install the [Firefox web browser](https://www.mozilla.org/firefox) and [geckodriver](https://github.com/mozilla/geckodriver). To install `geckodriver` download the release for your operating system from https://github.com/mozilla/geckodriver/releases and move the executable file to a directory that is included in your PATH environment variable.

## Authors

`wcap` was written by [Ramiro Gómez](https://ramiro.org/).
pyurlquerycli 1.5
A simple Python script to interact with urlquery.net APIs from CLI
Requires Python: >=3
Keywords: urlquery, url, malware, phishing, analyze, sandbox, api, cli

pyurlquerycli
=============

Description
-----------
A simple script to interact with urlquery.net APIs from CLI.


Usage
-----
```
$ pip install pyurlquerycli
$ pyurlquerycli -h
usage: pyurlquerycli.py [-h] -i INPUT_FILE [-k API_KEY] [{submit,check}]

version: 1.4

positional arguments:
  {submit,check}        Action to do on urlquery.net (default 'submit')

options:
  -h, --help            show this help message and exit

common parameters:
  -i, --input-file INPUT_FILE
                        Input file (either list of newline-separated FQDN or URL (for submitting) || submission UUID (for checking
                        reports)
  -k, --api-key API_KEY
                        API key (could either be provided in the "SECRET_URLQUERY_APIKEY" env var)
```
  

Changelog
---------
* version 1.3->1.4 - 2025-09-03: Migration to pyproject.toml after few tests
* version 1.0 - 2025-08-03: Initial commit

Copyright and license
---------------------

pyurlquerycli is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

pyurlquerycli is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  

See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU General Public License along with pyurlquerycli. 
If not, see http://www.gnu.org/licenses/.

Contact
-------
* Thomas Debize < tdebize at mail d0t com >
capacity-web 1.0.6
网络搜索功能包，提供简单易用的网络搜索接口
Requires Python: >=3.8
Keywords: api, capacity, http, network, scraping, search, simen, web-search

# Capacity Web Search

网络搜索功能包，提供简单易用的网络搜索接口。

## 🚀 快速开始

### 安装
```bash
pip install capacity-web
```

### 使用
```python
from capacity_web import search_web

# 基础搜索
result = search_web("人工智能最新发展")
if result["success"]:
    print(f"找到 {result['data']['number_of_results']} 条结果")
    for item in result["data"]["results"]:
        print(f"标题: {item['title']}")
        print(f"链接: {item['url']}")
        print(f"摘要: {item['content'][:100]}...")
        print(f"评分: {item['score']}")
        print("---")

# 高级搜索
result = search_web(
    "Python教程",
    language="zh",
    max_results=10,
    categories=["general"],
    time_range="year"
)
```

## 📋 API 文档

### search_web(query, language="all", max_results=None, **kwargs)

进行网络搜索。

**参数:**
- `query` (str): 搜索关键词，必填
- `language` (str): 语言代码，默认 "all"
- `max_results` (int): 最大结果数量，1-100之间
- `**kwargs`: 高级选项

**返回:**
```python
{
    "success": bool,                    # 是否成功
    "data": {                          # 搜索结果数据
        "query": str,                  # 查询词
        "number_of_results": int,      # 结果数量
        "results": [                   # 搜索结果列表
            {
                "url": str,            # 网页链接
                "title": str,          # 网页标题
                "content": str,        # 内容摘要
                "engine": str,         # 搜索引擎
                "score": float,        # 相关性评分
                "category": str,       # 结果类别
                # ...更多字段
            }
        ],
        "answers": list,               # 直接答案
        "suggestions": list,           # 搜索建议
        "corrections": list,           # 查询纠正
        "infoboxes": list,            # 信息框
        "unresponsive_engines": list   # 无响应引擎
    },
    "message": str                     # 状态信息
}
```

## ✨ 特性

- **统一返回格式**: 所有API都返回 `{"success": bool, "data": dict, "message": str}` 格式
- **自动重试**: 网络异常时自动重试，最多3次，指数退避
- **完整错误处理**: 捕获所有网络、HTTP、验证错误
- **AI友好**: 简洁的API设计，易于理解和使用
- **类型提示**: 完整的类型注解支持

## 🔧 高级选项

```python
result = search_web(
    "搜索词",
    language="zh",                    # 语言: "zh", "en", "all" 等
    max_results=20,                   # 最大结果数
    page_number=1,                    # 页码
    categories=["general", "news"],   # 搜索类别
    search_engines=["google", "bing"], # 搜索引擎
    time_range="month",               # 时间范围
    safe_search=1,                    # 安全搜索级别
    results_format="json"             # 结果格式
)
```

## 📊 规范兼容

本包遵循 [Simen Capacity  Package 脚本规范 v2.1](https://github.com/capacity/specification)：

- ✅ **功能导向设计**: API以业务功能为核心
- ✅ **统一返回格式**: 标准的成功/失败响应
- ✅ **完整错误处理**: 网络、HTTP、验证异常全覆盖
- ✅ **自动重试机制**: tenacity实现的指数退避重试
- ✅ **AI友好接口**: 清晰的函数签名和文档

## 📝 许可证

MIT License
img-scale-to-webp 1.0.0
A tool to convert images to WebP with a target file size.
Requires Python: >=3.6

# img-scale-to-webp

A simple and efficient command-line tool to convert images in a folder to the WebP format, aiming for a specific target file size. It also backs up the original images.

## Features

* **Batch Conversion**: Convert all images in a folder at once.
* **Target Size**: Aims to create WebP images around a specified file size in KB.
* **Resize**: Optionally resize images to a maximum width.
* **Recursive**: Process images in subfolders.
* **Backup**: Automatically backs up original images to a separate folder.
* **Supported Formats**: `.jpg`, `.jpeg`, `.png`, `.tif`, `.tiff`, `.bmp`

## Installation

You can install `img-scale-to-webp` from PyPI:

```bash
pip install img-scale-to-webp
```

## Usage

The basic command is straightforward:

```bash
img-scale-to-webp --folder /path/to/your/images
```

### Examples

**1. Convert images in a folder to a target size of 500 KB:**

```bash
img-scale-to-webp --folder "My_Photos" --target-kb 500
```

**2. Convert images and resize them to a maximum width of 1200 pixels:**

```bash
img-scale-to-webp --folder "My_Photos" --max-width 1200
```

**3. Recursively convert all images in a folder and its subfolders:**

```bash
img-scale-to-webp --folder "My_Photos" --recursive
```

### Command-line Options

| Argument      | Description                                                | Default |
|---------------|------------------------------------------------------------|---------|
| `--folder`    | **Required.** The folder containing the images.            |         |
| `--target-kb` | The target size for each image in kilobytes.               | `1024`  |
| `--max-width` | Optional maximum width to resize images. Set to 0 to disable. | `1920`  |
| `--recursive` | Process images in subfolders.                              | `False` |

## License

This project is licensed under the MIT License.
img-scale-to-wbp 1.0.0
A tool to convert images to WebP with a target file size.
Requires Python: >=3.6

# img-to-webp

A simple and efficient command-line tool to convert images in a folder to the WebP format, aiming for a specific target file size. It also backs up the original images.

## Features

* **Batch Conversion**: Convert all images in a folder at once.
* **Target Size**: Aims to create WebP images around a specified file size in KB.
* **Resize**: Optionally resize images to a maximum width.
* **Recursive**: Process images in subfolders.
* **Backup**: Automatically backs up original images to a separate folder.
* **Supported Formats**: `.jpg`, `.jpeg`, `.png`, `.tif`, `.tiff`, `.bmp`

## Installation

You can install `img-to-webp` from PyPI:

```bash
pip install img-to-webp
```

## Usage

The basic command is straightforward:

```bash
img-to-webp --folder /path/to/your/images
```

### Examples

**1. Convert images in a folder to a target size of 500 KB:**

```bash
img-to-webp --folder "My_Photos" --target-kb 500
```

**2. Convert images and resize them to a maximum width of 1200 pixels:**

```bash
img-to-webp --folder "My_Photos" --max-width 1200
```

**3. Recursively convert all images in a folder and its subfolders:**

```bash
img-to-webp --folder "My_Photos" --recursive
```

### Command-line Options

| Argument      | Description                                                | Default |
|---------------|------------------------------------------------------------|---------|
| `--folder`    | **Required.** The folder containing the images.            |         |
| `--target-kb` | The target size for each image in kilobytes.               | `1024`  |
| `--max-width` | Optional maximum width to resize images. Set to 0 to disable. | `1920`  |
| `--recursive` | Process images in subfolders.                              | `False` |

## License

This project is licensed under the MIT License.