Skip to content

onthecut/crt-notice-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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