This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Web Scraper


An easy to implement web data extractor for WordPress. This plugin can be used to display realtime data from any websites directly into your posts, pages or sidebar. It temporarily caches the content on your website. You can use this plugin to include realtime stock quotes, cricket or soccer scores or any other generic content from public domains.

Important Note:
Web scraping is a practice of extracting data from another website. When doing so, you need to ensure that you have the permissions to use the content, and you need to give due credit to the original source.
Make sure when scraping content, you do not violate any copyright laws.

Features include:

  1. Scraped output can be displayed through custom template tag, shortcode in page, post and sidebar (through a text widget).
  2. Configurable caching of scraped data. Cache timeout can be defined in minutes for every scraped data.
  3. Configurable Useragent for your scraper can be set for every scrape.
  4. Configurable default settings like enabling, useragent, timeout, caching, error handling.
  5. Multiple ways to query content – CSS Selector, XPath or Regex.
  6. A wide range of arguments for parsing content.
  7. Option to pass post arguments to a URL to be scraped.
  8. Dynamic conversion of scraped content to specified character encoding to scrape data from a site using different charset.
  9. Create scraped pages on the fly using dynamic generation of URLs to scrape or post arguments based on your page’s get or post arguments.
  10. Callback function for advanced parsing of scraped data.

Check the the official website for documentation, browse through examples, or try paid support for crafting a perfectly optimized web scraper.



Example code for some common use cases of the plugin


  1. Upload folder wp-web-scrapper to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Usage instructions for WP Web Scraper

Mode details on this on the FAQs page


Only works sometimes

Only works on some pages. On other pages it gives an error no matter what you try to select. The author abandoned this plugin a couple years ago.

It’s Works fine until

The plugin works great for me until some things like this happen

Error Parsing: Query returned empty response

Versatile and Powerful

Great plugin. It’s a little tricky at first to get going with the arguments and API but you can precisely pick anything off other webpages with this thing!

Read all 18 reviews

Contributors & Developers

“WP Web Scraper” is open source software. The following people have contributed to this plugin.


Translate “WP Web Scraper” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Bug fix: Post request
  • Bug fix: gt, lt arguments


  • Added scrape importer
  • replace_query and replace_with now accepted specially formatted array arguments


  • Basehref bug fix


  • Documentation website change


  • Bug fix: Minor bug fixes.


  • Enhancement: Complete code rewrite, uses PHP DOM directly for faster processing
  • Enhancement: Sandbox to test and debug
  • Deprecation: Dropped removetags
  • Changes: Changes in arguments


  • Enhancement: Migrated caching to the Transients API.
  • Enhancement: Clear and find / replace now supports selectors.
  • Enhancement: Cleaner code – faster processing.
  • Enhancement: More debugging data including processing time.
  • Deprecation: Modules are deprecated in support of callback functions.


  • Enhancement: Added callback for flexible as well as advanced parsing.
  • Bug fix: Fixed the issue of usage within widget.


  • Enhancement: Added removetags to remove certain tags and content from scrape.
  • Bug fix: Retains http-cache and modules on upgrade.


  • Bug fix: Patched a major security issue related to useragent string settings.


  • Bug fix: Added xpathdecode to handle complex xpath queries in shortcode.


  • Enhancement: Added support for xpaths.
  • Enhancement: Uses builtin WP_HTTP classes instead of raw cURL or Fopen.
  • Enhancement: Complete overhaul of code, architecture and documentation.
  • Enhancement: Reversed to filebased cache instead of MySQL tables.


  • Enhancement: Introduction of special variable ___QUERY_STRING___ for dynamic URLs.
  • Enhancement: Upgraded the underlying phpQuery library to single file version.


  • Enhancement: Option to turn off the debug information displayed as html comment.


  • Milestone release: Complete overhaul of code, architecture and documentation.
  • Bug fix: Multiple bug fixes addressed.