Skip to content

Commit

Permalink
Fixes values for OTRL
Browse files Browse the repository at this point in the history
  • Loading branch information
hoijui committed Apr 27, 2021
1 parent 3e23425 commit 6fbe593
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ def version_token():
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)





class AppURLopener(urllib.request.FancyURLopener):
version = "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.69 Safari/537.36"

Expand Down Expand Up @@ -218,18 +222,18 @@ def apppropedia2okh(self, props_appro: dict):
technology_readiness = None
if props_appro.get('replicated', 'No') == 'Yes' \
or not props_appro.get('replicated-in', None) is None: # 'made-independently'
technology_readiness = 'otlr:OTLR-5'
technology_readiness = 'OTLR-5'
elif props_appro.get('made', 'No') == 'Yes':
technology_readiness = 'otlr:OTLR-4'
technology_readiness = 'OTLR-4'
elif 'status' in props_appro: # 'development-stage'
stati = props_appro['status'].split(',')
if 'Commercialized' in stati \
or 'Deployed' in stati \
or 'Implemented' in stati \
or 'Verified' in stati:
technology_readiness = 'otlr:OTLR-5'
technology_readiness = 'OTLR-5'
elif 'Prototype' in stati:
technology_readiness = 'otlr:OTLR-4'
technology_readiness = 'OTLR-4'
'''
Values found for 'status':
Commercialized
Expand Down

0 comments on commit 6fbe593

Please sign in to comment.