Create a new parser for a given domain.
Arguments
- x
A character string of a URL to the newspaper to create a parser for.
A Markdown formatted character string of the author of the parser.
- issue
A Markdown formatted link to the issue associated with the parser (please file an issue before starting to work on a new parser).
- rss
An optional character string of the RSS feed associated with the parser.
- test_data
An optional data frame of test data to use for testing the parser.
Details
The function will process through the steps for creating a new parser, which are:
Creating a file from the parser template
Trying to find an RSS feed link
Add a new entry to the status.csv file, which contains information about all parsers.
Edit the parsers to extract required and additional information from articles on the site.
Check the parser for consistency (can it be loaded? are all entries present?).
Check against test data (either provided in the function or downloaded from the RSS feed).
Finalise CSV entry
As might be obvious, not all steps can be performed in a single action. Rather the idea is to run the function multiple times, until all is done.