A Python module to automatically install Chrome extensions on Windows/Mac/Linux
Project description
extinst
一个用于在Windows/Mac/Linux上自动安装Chrome插件的Python模块。
功能特性
- 自动检测操作系统类型
- 自动查找Chrome安装路径
- 支持.crx格式的Chrome插件安装
- 简单易用的API
安装
pip install extinst
使用示例
from extinst import ChromeExtensionInstaller
# 创建安装器实例
installer = ChromeExtensionInstaller()
# 安装本地crx文件
extension_path = "path/to/extension.crx"
installer.install_from_file(extension_path)
# 从Chrome Web Store安装
extension_id = "abcdefghijklmnopqrstuvwxyzabcdef"
installer.install_from_store(extension_id)
# 从Chrome Web Store下载扩展到本地(不安装)
# 保存到默认路径
installer.download_from_store(extension_id)
# 保存到指定路径
# installer.download_from_store(extension_id, save_path="my_extension.crx")
# 列出已安装的扩展
extensions = installer.list_installed_extensions()
for ext in extensions:
print(f"名称: {ext['name']}, ID: {ext['id']}")
支持的操作系统
- Windows
- macOS
- Linux
注意事项
- 在使用前请确保Chrome浏览器已正确安装
- 安装插件可能需要重启Chrome浏览器
- 某些系统可能需要管理员/root权限
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
extinst-0.1.0.tar.gz
(8.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file extinst-0.1.0.tar.gz.
File metadata
- Download URL: extinst-0.1.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
848a3f85135577d61ade89f44ed8ed163d64b13b845e51ebb5dd5bc8ad2685d6
|
|
| MD5 |
60f9bbb732c3f6761dd7177438e61b4d
|
|
| BLAKE2b-256 |
4bc3bc4eca37298113891d6089c3aa963cb5aa5395986ad53102594e90348019
|
File details
Details for the file extinst-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: extinst-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84c88e46e80c353012c2e96abc0cdcf04507b6740e35a3e50d15e7feb28f6854
|
|
| MD5 |
7fc61bd4cb4c4c0bdf9c5d1811a70240
|
|
| BLAKE2b-256 |
8574a818b73293e7623069fba2d0f55395f1d618c8f3d807560e23e16320c1a4
|