@onthecut/crt-notice-scraper

Canal and River Trust (CRT) Notice Scraper

Usage no npm install needed!

<script type="module">
  import onthecutCrtNoticeScraper from 'https://cdn.skypack.dev/@onthecut/crt-notice-scraper';
</script>

README

onthecut / crt-notice-scraper

Canal and River Trust (CRT) Notice Scraper

Install

npm install @onthecut/crt-notice-scraper

API

import {
    getNotices,
    getNotice
} from '@onthecut/crt-notice-scraper';

// Retreive all notice summaries (CRT Notice Search Results)
const notices = await getNotices()

// Get detailed information on individual notices
const url = 'https://canalrivertrust.org.uk/notices/14494-boston-lock';
const notice = await getNotice(url);

Related

Licence

MIT