Skip to content

adammelancon/lafayette911

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lafayette911.org output processing


UPDATE!!!! I finally got the JSON directly from the site. See the folder for the Pi Pico W script to see how I'm using the data with a Pi Pico LED.

This is a perpetual script I keep working on as I get better with Python. This script scrapes http://lafayette911.org for data and attemps to clean it up and make it presentable as JSON or some easily readable text.

From: image

To:

Time:   12/24/2023 20:30
Loc:    300 BACHERT ST, BACHERT LAFAYETTE, LA
Cause:  Vehicle Accident
Agency: Police

Time:   12/24/2023 19:30
Loc:    400 MARIE ANTOINETTE ST, LAFAYETTE, LA
Cause:  Vehicle Accident
Agency: Police

Time:   12/24/2023 19:01
Loc:    1600 N UNIVERSITY AVE, HOLLYWOOD LAFAYETTE, LA
Cause:  Vehicle Accident
Agency: Police

Or:

{
    "status": "ok",
    "incidents": [
        {
            "location": "300 BACHERT ST/BACHERT            LAFAYETTE, LA",
            "cause": "VEHICLE ACCIDENT",
            "reported": "12/24/2023 20:30",
            "assisting": "POLICE",
        },
        {
            "location": "400 MARIE ANTOINETTE ST/            LAFAYETTE, LA",
            "cause": "VEHICLE ACCIDENT",
            "reported": "12/24/2023 19:30",
            "assisting": "POLICE",
        },
        {
            "location": "1600 N UNIVERSITY AVE/HOLLYWOOD            LAFAYETTE, LA",
            "cause": "VEHICLE ACCIDENT",
            "reported": "12/24/2023 19:01",
            "assisting": "POLICE",
        },
    ],
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages