Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/tmeister/direct-crawler/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Basic site crawler and importer to WordPress
The plugin is a simple crawler implementation to get content from an external website and import them as a WordPress post.
The plugin doesn't have a UI. It needs to be run n a command line like a WP CLI Command.
Usage
- Run
composer installto install the PHP dependecies - Add the post URLs from where you want to get the content to the
posts.csvfile, one URL per line. - On the
Parser.phpfile, update the$siteUrlvariable using the final site domain. - Update the CSS selectors on the
Parser.phpfile to the site's CSS selector to get the correct values. Ex. Where to get the H1 info, the date, etc. - Run the WP CLI Command via the command line.
wp direct get