This commit is contained in:
Kovid Goyal 2024-07-14 14:23:13 +05:30
commit 59fd00521f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -73,11 +73,12 @@ class Bloomberg(BasicNewsRecipe):
def parse_index(self):
inx = 'https://cdn-mobapi.bloomberg.com'
sec = self.index_to_soup(inx + '/wssmobile/v1/navigation/bloomberg_app/search-v2', raw=True)
sec_data = json.loads(sec)['searchNav'][0]['items']
sec_data = json.loads(sec)['searchNav']
feeds = []
for sects in sec_data:
for i in sec_data:
for sects in i['items']:
section = sects['title']
sec_slug = sects['links']['self']['href']
self.log(section)