A RESTful API wrapper for the Postlight Parser library. The API allows you to extract content and metadata from any webpage by simply sending a GET request with the URL of the page you want to parse.
You'll need to have the following installed on your machine:
- Clone this repository:
git clone https://github.com/GoodMorningTech/parser
- Install dependencies
cd parser
npm install
You can start the server locally with:
node index.js
The API is now available at http://localhost:3000
. To parse a webpage, send a GET request to the /parse
endpoint, passing the URL of the page as a query parameter:
GET http://localhost:3000/parse?url=<url-to-parse>
The response will be a JSON object containing the extracted content and metadata.
Contributions are welcome! If you have an idea for a new feature or find a bug, please open an issue. If you want to contribute code, please fork the repository and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.