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

Latest commit

 

History

History
13 lines (11 loc) · 543 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 543 Bytes

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