Skip to content

Commit

Permalink
disable playstore
Browse files Browse the repository at this point in the history
  • Loading branch information
wokron committed Mar 1, 2024
1 parent f20ee08 commit 8f95590
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions mobsf/StaticAnalyzer/views/android/playstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,20 @@

def get_app_details(package_id):
"""Get App Details form PlayStore."""
try:
logger.info('Fetching Details from Play Store: %s', package_id)
det = app(package_id)
det.pop('descriptionHTML', None)
det.pop('comments', None)
description = BeautifulSoup(det['description'], features='lxml')
det['description'] = description.get_text()
det['error'] = False
if 'androidVersionText' not in det:
det['androidVersionText'] = ''
except Exception:
det = app_search(package_id)
return det
# try:
# logger.info('Fetching Details from Play Store: %s', package_id)
# det = app(package_id)
# det.pop('descriptionHTML', None)
# det.pop('comments', None)
# description = BeautifulSoup(det['description'], features='lxml')
# det['description'] = description.get_text()
# det['error'] = False
# if 'androidVersionText' not in det:
# det['androidVersionText'] = ''
# except Exception:
# det = app_search(package_id)
# return det
return {'error': True}


def app_search(app_id):
Expand Down

0 comments on commit 8f95590

Please sign in to comment.