https://github.com/james2doyle/pyro-scrape-plugin
A plugin to scrape a web page for specific selectors
https://github.com/james2doyle/pyro-scrape-plugin
Last synced: about 1 month ago
JSON representation
A plugin to scrape a web page for specific selectors
- Host: GitHub
- URL: https://github.com/james2doyle/pyro-scrape-plugin
- Owner: james2doyle
- Created: 2014-03-10T19:31:38.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-10T19:33:21.000Z (over 12 years ago)
- Last Synced: 2025-02-24T20:00:01.977Z (over 1 year ago)
- Language: PHP
- Size: 129 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pyro-scrape-plugin
==================
This is a simple plugin that scrapes a URL and returns an array of results.
```html
- {{ td }}
{{ scrape:find url="http://www.example.com/page-with-a-html-table" selectors="table|td" cache_duration="10080" }}
{{ /scrape:find }}
```
This example broken down:
* scrape the url
* find the first table
* get whats inside the td tag
* save the results for 7 days (24 * 7 * 60)
* display the results in a list
There is a small info array set up in the plugin so you can see how it works. It's pretty short.