安装par_scrape需要以下步骤和前提条件:
- Preparação ambiental::
- Python 3.11或更高版本(通过
python --version
(Verificar). - Git工具(用于克隆项目,Linux用户可通过
sudo apt install git
(Instalação). - 推荐使用UV工具管理依赖,安装命令为:
curl -LsSf https://astral.sh/uv/install.sh | sh
(Linux/Mac).
- Python 3.11或更高版本(通过
- projeto de clonagem: Executar
git clone https://github.com/paulrobello/par_scrape.git
并切换到项目目录。 - Instalação de dependências:使用UV同步依赖(
uv sync
)或直接从PyPI安装(uv tool install par_scrape
). - Configurações opcionais:如需使用Playwright,需单独安装浏览器(
playwright install chromium
). - Configuração da chave de API: em
~/.par_scrape.env
文件中添加AI提供者的密钥(如OpenAI或Anthropic)。
注意:确保所有依赖项正确安装,否则可能影响功能使用。
Essa resposta foi extraída do artigopar_scrape: uma ferramenta de rastreamento para extração inteligente de dados da WebO