Scraperly 🎬
Transform your text into captivating AI-narrated videos with matching visuals! 🚀
Scraperly is your all-in-one Python toolkit for creating engaging AI-powered videos. It seamlessly combines web scraping, AI content processing, and video generation to turn your text into professional-looking videos with minimal effort.
📚 Table of Contents
- ✨ Features
- 🚀 Quick Start
- ⚙️ Installation
- 🎯 Use Cases
- 🛠️ Advanced Usage
- 🤖 AI Providers
- 🔧 Troubleshooting
- 👥 Contributing
- 📝 License
✨ Features
- 🎥 One-Click Video Creation: Transform text into professional videos
- 🤖 Multiple AI Providers: Choose from OpenAI, Anthropic, Hyperbolic, or Ollama
- 🖼️ Smart Image Scraping: Automatic image sourcing from Lexica.art
- 🗣️ Natural Narration: High-quality text-to-speech conversion
- ⚡ Fast Processing: Efficient content segmentation and processing
- 🎨 Customizable Output: Control image count and video parameters
🚀 Quick Start
from scraperly import scraperly
import os
# Create your first AI video in just 3 lines!
result = scraperly(
content="Your story or content here",
provider_name="openai",
api_key=os.getenv("OPENAI_API_KEY"),
model="gpt-4"
)
⚙️ Installation
📦 Using pip (Recommended)
# Basic installation
pip install scraperly
# With AI provider support
pip install "scraperly[ai]"
# Set up your API keys (recommended)
export OPENAI_API_KEY="your-openai-api-key"
export ANTHROPIC_API_KEY="your-anthropic-api-key"
🔧 From Source
# Clone and install
git clone https://github.com/adelelawady/scraperly.git
cd scraperly
pip install -e ".[ai]"
🎯 Use Cases
1. Story Visualization
from scraperly import scraperly
import os
# Turn a story into an engaging video
story = """
The ancient castle stood silently against the twilight sky,
its weathered stones holding centuries of secrets...
"""
result = scraperly(
content=story,
provider_name="anthropic",
api_key=os.getenv("ANTHROPIC_API_KEY"),
model="claude-3-sonnet",
max_images_per_segment=3
)
2. Educational Content
from scraperly import scraperly
import os
# Create educational videos
lesson = """
The Solar System consists of eight planets orbiting around the Sun.
Each planet has unique characteristics...
"""
result = scraperly(
content=lesson,
provider_name="openai",
api_key=os.getenv("OPENAI_API_KEY"),
model="gpt-4-turbo",
max_images_per_segment=2,
output_video_path="solar_system.mp4"
)
🤖 AI Providers
| Provider | Default Model | Available Models | Features |
|---|---|---|---|
| OpenAI | gpt-4 |
All OpenAI chat models (e.g., gpt-4, gpt-3.5-turbo, gpt-4-turbo, etc.) |
Best for creative content |
| Anthropic | claude-3-sonnet |
All Claude models (e.g., claude-3-opus, claude-3-sonnet, claude-3-haiku, etc.) |
Excellent analysis |
| Hyperbolic | deepseek-v3 |
All Deepseek models (e.g., deepseek-v3, deepseek-v2, etc.) |
Fast processing |
| Ollama | llama2 |
All Ollama models (e.g., llama2, mistral, codellama, etc.) |
Local execution |
🔧 Troubleshooting
🚫 Chrome Driver Issues
- ✅ Update Chrome to latest version
- ✅ Verify matching chromedriver version
- ✅ Check system PATH configuration
❌ AI Provider Errors
- ✅ Verify API key validity
- ✅ Check provider status
- ✅ Confirm model availability
⚠️ Video Processing Issues
- ✅ Install/update FFmpeg
- ✅ Check disk space
- ✅ Verify file permissions
🤝 Contributing
We love your input! To contribute:
- 🍴 Fork the repo
- 🌿 Create your branch (
git checkout -b feature/AmazingFeature) - 💾 Commit changes (
git commit -m 'Add AmazingFeature') - 📤 Push to branch (
git push origin feature/AmazingFeature) - 🎁 Open a Pull Request
📝 License
Released under MIT License. See LICENSE for details.
👤 Author
Created with 💖 by adelelawady
Made with ❤️ for the AI community
Metadata
Release files for scraperly 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scraperly-2.0.1.tar.gz | 16.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scraperly-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.7 kB
Release files / scraperly-2.0.1.tar.gz
| Download URL | scraperly-2.0.1.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
069979a764cc072be72bc47c0f349f2d9c2fe614b3078732cd80fdff93084d1b
|
|
BLAKE2b-256 checksum How to use checksums |
6c9ea1a36eca5caa137af467d737e1dc48f17dac27aa45fe9009637d119dbb1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.0
|
Release files / scraperly-2.0.1-py3-none-any.whl
| Download URL | scraperly-2.0.1-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40c10850e77b1be9fee839bbed7cdcffadce0c92016d60b8304603e53e81a486
|
|
BLAKE2b-256 checksum How to use checksums |
4d14c3aa4940edaf114404a326cf755b3e58fb51b20ad70bbc5a76b39ea260fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.0
|