Comments (2)
Hello! If you're still accepting contributions, I'd be happy to take this on.
One clarification question: it looks like previously art has mostly been added by scraping sanjoseca.gov and assigning IDs at that point; as part of this change, would we need a way to programmatically assign IDs to manually added artwork listings?
from heartofthevalley.
@Lyrratic the ID
is currently a SHA256 hash of the artist
, title
, and sourceURL
fields, separated by a hyphen and prefixed with art_
.
This is completely arbitrary and can be changed if needed, the only requirements are that it is unique for every art object and that it can be one-way hashed for repeatable IDs the next time it is scraped. The one-way hash is important because this allows for the art objects in the artworks-overrides.json
file to be matched with the scraped version. The code is here:
heartofthevalley/lib/artwork.js
Lines 25 to 27 in 8022801
If you're planning to create this JSON file manually, you could call the generateID()
function call on each art item just that file before it is consolidated with the other artwork on this step:
heartofthevalley/scripts/consolidate-artwork-files.js
Lines 33 to 37 in 8022801
Alternatively, you could do the artwork generation manually in the command line for each one (it looks like there are only about 30 to do from that website):
echo -n "someartist-sometitle-https://example.com/sometitle" | shasum -a 256
from heartofthevalley.
Related Issues (20)
- Broken images HOT 3
- Broken URL for artwork scraped from the City of San Jose website HOT 3
- Map isn't loading HOT 1
- Hide mapbox keys HOT 1
- Vulnerable dependency
- Create a user flow for a navigation feature HOT 1
- Clicking on markers doesn't fly to the information on side menu HOT 1
- Allow Website Users to Add Entries and Artwork HOT 4
- Ripple Effect and Run River Run is mislocated on the map HOT 1
- Add murals from 2017 POW! WOW! San Jose HOT 1
- Pagination HOT 1
- Fix scrapper HOT 2
- Pop up descriptions cutoff HOT 3
- Create webapp to visually check each POI
- Adjust center of map to reveal details about an artwork HOT 2
- User feedback HOT 1
- Migrate to Gatsby HOT 1
- Move all mapbox api keys to env variables
- Allow images to be added to an artwork
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heartofthevalley.