This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Grabber Widget

Description

The HTML Grabber Widget was developed by Acumen
in order to provide a way to insert HTML from local or external webpages within your WordPress pages.

Once the plugin is installed, you will have a new Widget shown in the Appearance section, which you’ll be able to
drag into your sidebar. From there, you can configure the page settings, including an xPath query to the element
that you want to include in the sidebar.

Screenshots

  • Configuration options for the Grabber Sidebar Widget

Installation

This section describes how to install the plugin and get it working.

  1. Upload the plugin to it’s own directory within /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Add the widget to a sidebar in Appearance > Widgets and/or use the [grabber] shortcode
  4. Set up either the widget or the shortcode with the following fields:
    • Add the URL to the webpage you want to capture from
    • Set the selector type, either id or xpath.
    • Set up the element selector, using either xPath syntax or the element ID
  5. For the shortcode, the format should be [grabber url=http://example.com element=myElement type=id]
  6. Enjoy!

FAQ

What format can I specify HTML elements using?

Currently, we are using PHP’s DomXPath object. We have added support for choosing
an element by ID. However, if you were writing this yourself using the xPath syntax, you would use the syntax //*[@id='myElementId'].
We hope to support jQuery to support parsing of pages via a proxy using AJAX.

Contributors & Developers

“Grabber Widget” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Grabber Widget” into your language.

Interested in development?

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

Changelog

0.1

  • Initial release using DOMXPath

0.2

  • Added shortcode format