diff --git a/README.md b/README.md index 1f38f74..52e1bea 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Script to merge data from PsychonautWiki API + pages and TripSit factsheets into | `aliases` | `string[]` | List of aliases (lowercase) | Both | | `aliasesStr` | `string` | Comma-separated list of aliases (for fuzzy searching) | Both | | `summary` | `string` | Substance summary | TripSit | +| `reagents` | `string` | Reagent test kit reactions | TripSit | | `classes` | `null` \| `Dictionary` | Substance classifications | PsychonautWiki | | `classes.chemical` | `string[]` | Chemical classifications | PsychonautWiki | | `classes.psychoactive` | `string[]` | Psychoactive classifications | PsychonautWiki | diff --git a/scrape.py b/scrape.py index 6057dfa..c3166ca 100644 --- a/scrape.py +++ b/scrape.py @@ -375,6 +375,10 @@ for name in all_substance_names: if not len(summary): summary = None + test_kits = ts_properties.get('test-kits', '').strip() + if not len(test_kits): + test_kits = None + ts_bioavailability_str = ts_properties.get('bioavailability', '').strip() ts_bioavailability = {} if len(ts_bioavailability_str): @@ -486,6 +490,7 @@ for name in all_substance_names: 'aliases': list(aliases), 'aliasesStr': ','.join(aliases), 'summary': summary, + 'reagents': test_kits, 'classes': classes, 'toxicity': toxicity, 'addictionPotential': addiction_potential,