CocoaPods trunk is moving to be read-only. Read more on the blog, there are 9 months to go.

ProntoSoccorsoKit 0.1.0

ProntoSoccorsoKit 0.1.0

Maintained by Matteo Pacini.



  • By
  • Matteo Pacini

ProntoSoccorsoKit

Artwork & demo app icon kindly provided by Alessandro Vercellino.

Usage

ProntoSoccorso.region(.lazio).fetch { result in
    // Handle result
}

ProntoSoccorso.regions([.lazio, .friuliVeneziaGiulia]).fetch { result in
    // Handle result
}

Available regions / municipalities

  • Lazio
  • Friuli-Venezia Giulia
  • Puglia
    • Taranto
  • Trentino-Alto Adige
    • Trento
  • Lombardia
    • Valtellina E Alto Lario

Scraping

Most of the data is scraped from websites, hence fetching times may vary.

Scraping is done by adding a hidden WKWebView behind all other views in the keyWindow. Once the web view finishes loading, the post-render HTML is then parsed with SwiftSoup and the data populated.

Demo App

app-icon

A demo app is included to show the currently availble data, and how to fetch it.

Installation

App Transport Security

Contribute

License