Skip to content

Instantly share code, notes, and snippets.

curl 'https://www.anncsu.gov.it/system/modules/it.gov.sogei.rest/elements/get.json' \
-H 'Accept: application/json, text/javascript, */*; q=0.01' \
-H 'Accept-Language: it,en-US;q=0.9,en;q=0.8' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
-H 'Cookie: JSESSIONID=85A47D120D365A3D78CFE11DE5C031B3.jvm1; _pk_ref.34.7c19=%5B%22%22%2C%22%22%2C1713523560%2C%22https%3A%2F%2Fgithub.com%2Fopenaddresses%2Fopenaddresses%2Fissues%2F7055%22%5D; _pk_ses.34.7c19=1; _pk_id.34.7c19=5450f073c9e518de.1712046665.3.1713523979.1713257483.' \
-H 'Origin: https://www.anncsu.gov.it' \
-H 'Referer: https://www.anncsu.gov.it/it/consultazione-dellarchivio/ricerca-strade-e-numeri-civici/' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' \

Lista

Modo 1

  1. quelle che non richiedono argomenti (sono poche, sono 7);
    1. $Area;
    2. $Perimeter;
    3. $length;
    4. $geometry;
  2. $x;
We can't make this file beautiful and searchable because it's too large.
ID Colonnina, Ragione sociale, Stato, Paese, Provincia, Citta', Indirizzo, Cap, Orario apertura, Connettori, Attivazione
IT*ASM*EHYC30021BZ0134B*3,NEOGY SRL,Attiva,ITA,Bolzano,San Leonardo in Passiria,Via Andreas Hofer - Andreas Hofer Straße,39015,Aperto 24/7,CCS2 - 100kW,Supporto funzionalità di sblocco, Lettore RFID, Mobile App
IT*ASM*E100210824*2,NEOGY SRL,Attiva,ITA,Trento,Spiazzo,Via S. Vigilio 13,38088,Aperto 24/7,Tipo 2 - 22.127kW,Supporto funzionalità di sblocco, Lettore RFID, Prenotabile, Mobile App
IT*ASM*E11951049150034*1,NEOGY SRL,Attiva,ITA,Belluno,Sovramonte,Località Servo,32030,Aperto 24/7,Tipo 2 - 22.127kW,Supporto funzionalità di sblocco, Lettore RFID, Prenotabile, Mobile App
IT*ASM*E12020015930002*2,NEOGY SRL,Attiva,ITA,Bolzano,Marlengo,Via Palade - Gampenstraße 27,39020,Aperto 24/7,CHAdeMO - 50kW,Supporto funzionalità di sblocco, Lettore RFID, Prenotabile, Mobile App
IT*ASM*E100204701*2,NEOGY SRL,Attiva,ITA,Roma,Roma,Via Cesare Giulio Viola 43,00148,Aperto 24/7,Tipo 2 - 22.127kW,Su
<?xml version="1.0" encoding="UTF-8"?>
<gml:FeatureCollection xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd">
<gml:featureMember>
<gml:Point srsName="urn:ogc:def:crs:EPSG:6.12:4326">
<gml:coordinates>12.4924,41.8902</gml:coordinates> <!-- Longitudine, Latitudine del Colosseo a Roma -->
</gml:Point>
</gml:featureMember>
</gml:FeatureCollection>

Intro

Simon Willison as usual wrote a very interesting post:
https://simonwillison.net/2024/Mar/22/claude-and-chatgpt-case-study/

He had a linear shapefile of the Adirondack Park in the USA, composed of multiple lines. His goal was to transform these lines into a polygonal GeoJSON. The challenge was to create a continuous polygon that represented the park's boundary, as defined by the lines.

The article discusses the author's use of AI tools, Claude and ChatGPT, for a quick sidequest involving converting a shapefile to GeoJSON.

### requisiti ###
#
# yq https://github.com/kislyuk/yq
# scrape-cli https://github.com/aborruso/scrape-cli
# mlr https://github.com/johnkerl/miller
#
### requisiti ###
# scarica la lista dei film a Palermo
curl -kL "https://www.mymovies.it/cinema/palermo/" | \
{
"fields": [{"id":"_id","type":"int"},{"id":"Anno","type":"numeric"},{"id":"Professione","type":"text"},{"id":"Maschi","type":"numeric"},{"id":"Femmine","type":"numeric"}],
"records": [
[1,2024,"ALTRA CONDIZIONE NON PROFESSIONALE",42,44],
[2,2024,"CASALINGA",0,3505],
[3,2024,"COADIUVANTE FAMILIARE/SOCIO COOP.",17,95],
[4,2024,"COLLABORAZIONE COORD-CONTINUATIVA/PRESTAZIONE OPERA OCCASIONALE",1,5],
[5,2024,"DIRIGENTE",797,994],
[6,2024,"DIRIGENTE O IMPIEGATO",40,43],
[7,2024,"DISOCCUPATO/IN CERCA DI PRIMA OCCUPAZIONE",378,409],
[
{
"Mese": "gennaio",
"Valore": 10
},
{
"Mese": "febbraio",
"Valore": 12
},
{
[[["Index of Happiness","09:00","10:00","11:00","12:00","13:00"],["Eden",361,613,560,586,708],["Shambhala",644,486,404,382,167],["Avalon",571,729,580,351,650],["Camelot",584,569,811,382,776],["El Dorado",472,267,994,750,101],["Atlantis",391,897,874,510,867]]]