mshenfield / chtl-data-pipeline Goto Github PK
View Code? Open in Web Editor NEWA pipeline for data from the Capitol Hill Tool Library's MyTurn dashboard.
A pipeline for data from the Capitol Hill Tool Library's MyTurn dashboard.
Some of the data going into the CSVs have HTML blobs, and their newlines didn't get escaped when writing to the CSV. We'll need to implement newline escaping during export to make the CSVs more useful.
Example from the Maintenance
field in inventory.csv
:
5,Board Games,Cranium,,,,,,0,Sustainable Living,,4.0,0.1,,7,<p><span>[March 2019 Maren] Item never returned</span></p>,,,,,N,Y,N,0,,https://myturn-prod-images-in.s3.amazonaws.com/6/66/item/65312/image/1464227285084724835121-E8BE1E27-6404-5381-5CF1-34DB7DE91D00.jpg,"frozenset({'games', 'cramium'})",F 1.5,,,,,,,3,,,7,,,,0,,,,,,,,,,0,,2015-07-07 11:44:47-07:00,2020-05-16T14:39:17.000Z,2020-05-16T07:39:17.000-07:00,True,False,False,False
6,Telescopes,Telescope,,,,,,0,Sustainable Living,,4.0,0.1,,7,<p>[Maren 09/2018] weeded</p>,,,,,N,Y,N,0,,https://myturn-prod-images-in.s3.amazonaws.com/6/66/item/67477/image/attribute_image6941196198708631832.jpg,frozenset({'telescope'}),,"<p>The sight (on the side) shows everything upside down somehow. Tried fiddling with it, but couldn't figure it out.</p>
<p>Was told that the main telescope is not working either :(</p>
<p>Dylan (dfresh) has checked this item out to see if he can fix it!</p>",,,,,,3,,,7,,,,0,,,,,,,,,,0,,2015-07-19 21:48:50-07:00,2022-01-12T08:13:24.000Z,2022-01-12T00:13:24.000-08:00,True,False,False,False
7,Marine & Fishing,Clam Shovel,,,,,,0,,,5.0,0.1,,7,[Maren October 2018] missing,,,,,N,Y,N,0,30.0,https://myturn-prod-images-in.s3.amazonaws.com/6/66/item/68364/image/attribute_image9125856150012536881.jpg,"frozenset({'digging', 'shovel', 'clam'})",Far Back,"<p>keep the ocean to your side, scrape quickly over the show, and don't break the clam shell!</p>",,,,,,3,,,7,,,,0,,,,,30.0,,,,,0,,2015-07-29 22:38:12-07:00,2022-01-12T08:12:09.000Z,2022-01-12T00:12:09.000-08:00,True,False,False,False
Example from the Description
field of inventory.csv
:
11,Hobbies & Crafts,Linoleum Block Carving Tools,,,,,,0,,,5.0,0.1,,7,<p>Use these to make your own stamps!</p>,,,,,N,Y,N,0,,https://myturn-prod-images-in.s3.amazonaws.com/6/66/item/68372/image/attribute_image246694180652050202.jpg,"frozenset({'sharppointything', 'stamps', 'art', 'crafts'})",A 4.2,,,,,,,3,,,7,,,,0,,,,,,,,,,0,,2015-07-30 10:23:06-07:00,2021-12-05T18:39:45.000Z,2021-12-09T10:48:08.000-08:00,False,False,False,False
12,Brushes and Rollers,Painting Tools,,,0,,,0,,,5.0,0.1,,7,"<p>1 roller, 3 brushes</p>
<p><span>[Maren November 2018] consumed</span></p>",,,,,N,Y,N,0,,https://myturn-prod-images-in.s3.amazonaws.com/6/66/item/68373/image/attribute_image9067645810522770333.jpg,frozenset({''}),A 3.4,<p>Please completely clean brushes before return</p>,,,,,,3,,,7,,,,0,,,,,,,,,,0,,2015-07-30 10:27:18-07:00,2022-01-12T08:12:52.000Z,2022-07-22T09:49:18.000-07:00,True,False,False,False
13,Hobbies & Crafts,Paper Cutter,,,,,,0,,,5.0,0.1,,7,<p>All your paper cutting needs with this handy dandy tool!</p>,,,,,N,Y,N,0,,https://myturn-prod-images-in.s3.amazonaws.com/6/66/item/68375/image/attribute_image566824457081178194.jpg,"frozenset({'cut', 'sharp', 'paper', 'cutting'})",A 3.2,,,,,,,3,,,7,,,,0,,,,,,,,,,0,,2015-07-30 10:29:15-07:00,2021-12-05T18:39:45.000Z,2021-12-09T10:48:08.000-08:00,False,False,False,False
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.