Usage
This guide covers how to use the WordPress Image Scraper plugin to scrape images from URLs and import them into your WordPress Media Library.
Scraping Imagesโ
Follow these steps to scrape images from one or more URLs:
- In your WordPress admin panel, navigate to Images Scraper in the sidebar menu.
- In the URLs box, paste the URLs of the pages you want to scrape images from.
- Enter one URL per line for multiple pages.
Don't forget to add a trailing slash (/) at the end of each URL! The scraper requires this to correctly identify and process each page.
Correct: https://example.com/gallery/
Incorrect: https://example.com/gallery
- Click the Start Scraping button to begin the process.
Understanding the Scraping Processโ
Once you click Start Scraping, the plugin processes each URL sequentially. Here is what to expect:
| Stage | What You'll See |
|---|---|
| Processing | A "Scraping..." status message appears for the active URL |
| URL Completed | A confirmation message is displayed when a URL finishes |
| All Completed | Each URL shows a "Completed" status when the batch is done |
Scraping time depends on several factors, including the number of URLs, the number of images on each page, image file sizes, and your server's resources and network speed. Larger batches will naturally take longer to complete.
Tips for Effective Scrapingโ
- Scrape in batches โ if you have a large number of URLs, consider splitting them into smaller batches to avoid server timeouts or memory issues.
- Check your server limits โ ensure your PHP
max_execution_timeandmemory_limitsettings are sufficient for the number of images you plan to scrape. - Use stable URLs โ make sure the URLs you provide are accessible and return a valid HTML page with images.
- Verify trailing slashes โ double-check that every URL ends with a
/to prevent scraping errors.
For very large scraping jobs, consider running the process during off-peak hours when your server has more resources available. This helps ensure faster and more reliable scraping.
Accessing Scraped Imagesโ
All scraped images are automatically imported into your WordPress Media Library. Once the scraping process completes, you can:
- Browse images โ go to Media โ Library in the WordPress admin to view all imported images.
- Use in content โ insert scraped images into your posts, pages, and templates using the standard WordPress media inserter.
- Manage files โ rename, edit, or delete imported images just like any other media file in your library.
Troubleshootingโ
If you encounter issues during scraping, consider the following:
| Issue | Possible Solution |
|---|---|
| Scraping hangs or times out | Reduce the number of URLs per batch, or increase PHP max_execution_time |
| No images found | Verify the URL is correct, accessible, and contains images |
| Missing trailing slash | Ensure every URL ends with / |
| Permission errors | Check that wp-content/uploads is writable by the web server |
| Memory errors | Increase the PHP memory_limit in your server configuration |
Supportโ
If you need further help or encounter persistent issues, visit the Themesic Support Portal for assistance.