Skip to content
This repository has been archived by the owner on May 1, 2022. It is now read-only.
/ SR-Scraper Public archive

A small JavaScript function to scrape articles from the systematic collection of laws of Switzerland into JavaScript Objects.

License

Notifications You must be signed in to change notification settings

colin-r-carter/SR-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SR-Scraper

A small JavaScript function to scrape articles from the systematic collection of laws of Switzerland (https://www.admin.ch/gov/de/start/bundesrecht/systematische-sammlung.html) into JavaScript Objects.

How To:

  1. copy code from scraper.js to clipboard
  2. go to the desired SR-page (on admin.ch)
  3. inspect the site
  4. past the code to the javascript console and press enter
  5. object "collection" is now a javascript array containing all articles of the page

Todo:

  • Make function to get text only
  • Make Chrome-Extension

About

A small JavaScript function to scrape articles from the systematic collection of laws of Switzerland into JavaScript Objects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published