This API exposes the following functions to all drupal modules.
before($this, $inthis)
after($this, $inthis)
between($this, $andthis, $inthis)
multi_between($this, $andthis, $inthis)
starts_with($this, $inthis)
ends_with($this, $inthis)
surround($this, $withthis, $andthis)
(there are more as well, read the docs for a full listing)

These are great for parsing websites and pulling in non-standard data. Also known as "scraping" a website. It can be used for ANY text, not just websites. The text can come from anywhere. Email, dynamic content, etc. The functions are by default run through check_plain(). It should be noted that this MAY cause un-desired results. If it does, simply disable the check_plain functionality by adding the extra FALSE argument to the function calls as seen in the examples. However, it's best to use check_plain() first if at all possible.

Development and maintenance by CrystalDawn.net & Kappaluppa Company

Downloads

Version Downloads Date Links
7.x-1.3 tar.gz (8.43 KB) | zip (8.94 KB) 2011-Dec-20 Notes
6.x-1.9 tar.gz (7.38 KB) | zip (7.87 KB) 2010-Apr-08 Notes
5.x-1.8 tar.gz (7.27 KB) | zip (7.75 KB) 2008-Oct-28 Notes

Project Information

  • Module categories: Developer
  • Maintenance status: Unknown
  • Development status: Unknown
  • Reported installs: 85 sites currently report using this module. View usage statistics.
  • Last modified: November 29, 2011

Maintainers for Parsing API

  • crystaldawn - 20 commits
    last: 10 weeks ago, first: 3 years ago

Issues for Parsing API

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 28 Jul 11