colin-r-carter / SR-Scraper

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:JavaScript 66.2%Language:HTML 33.8%