Merge pull request #1 from NoahSaso/add-ts-reagents
Scrape reagent info from TripSit
This commit is contained in:
commit
c26210d0bf
@ -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 |
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user