techforpalestine / boycott-israeli-consumer-goods-dataset Goto Github PK
View Code? Open in Web Editor NEWgolden source for combining boycott data + alternatives
golden source for combining boycott data + alternatives
raw data in json format from a pastebin link: https://github.com/TechForPalestine/boycott-israeli-consumer-goods-dataset/blob/main/raw/boycott_list_formatted.json
write a script that parses the data and imports into:
create follow up issue(s) to go through the data and fill in missing fields where required.. preferably include list of files that need updating
Import the data in the attached csv.
All data in this file are "avoid".
No image urls exist in this file. Either raise a follow-up issue to add those, or work on as part of this issue.
Category can be retrieved from the "Main" column. Can ignore sub-categories for now.
Market is currently a country or region. This column needs to be converted to 2-character country code(s) https://www.iban.com/country-codes.
Reason can be operations_in_israel
and updated later.
The RFC proposes output formats of CSV and JSON.
Create scripts (in Python?) to read the YAML data and export as CSV and JSON.
Run those scripts and commit those artifacts to git.
Add pre-commit git hook that runs the scripts. Also add a Github Action that asserts that the CSV and JSON are up-to-date with the YAML before a PR can be merged.
The JSON and CSV exports should contain timetsamps for when they were first added (created_at
) and when they were last updated (updated_at
)
The timestamps should be in ISO 8601 format, in UTC timezone: yyyy-mm-ddTHH:mm:ss.SSSZ
The timestamps (especially updated_at
) will be used by consumers of the data to understand what has changed since the last time they fetched the data.
Originally posted by @THM222 in #9 (comment)
Create a schema (perhaps similar to boycott-israeli-tech-companies-dataset?), and a script that performs schema validation.
Add the schema validation as a git hook and a Github Action.
Attached json files can be parsed and imported into this repo.
Alternatives in the json files map to alternatives_text in this schema: https://github.com/TechForPalestine/boycott-israeli-consumer-goods-dataset/blob/main/schemas/brand_schema.yaml
Reason can be operations_in_israel
and be updated later.
sweetgreen boycott is due to ceo not supporting ceasefire
current reasons enum only supports operations_in_israel, operations_in_settlements
, which needs to be updated to include data such as sweetgreen
"sweetgreen": {
"id": "sweetgreen",
"name": "Sweetgreen",
"status": "avoid",
"reasons": [],
"countries": [
"us"
],
"website": "https://www.sweetgreen.com/",
"logo_url": "https://upload.wikimedia.org/wikipedia/commons/d/dd/Sweetgreen_logo.svg",
"description": "Sweetgreen is an American fast casual restaurant chain that is famous for its salads.[^1]\nJonathan Neman, CEO of restaurant chain Sweetgreen, vowed never to hire Harvard students who support ceasefire.[^2]\n\n[^1]: [https://en.wikipedia.org/wiki/Sweetgreen\n[^2]:](https://en.wikipedia.org/wiki/Sweetgreen/n[%5E2]:) https://apnews.com/article/israel-hamas-war-palestinians-companies-harvard-daecf3a387a689339dc41f35b773e063"
}
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.