Skip to content

Commit

Permalink
upload_date, video_status, author
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijinwuu committed Dec 9, 2023
1 parent 668503b commit 3bee446
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions yt_dlp/extractor/cnbc.py
Expand Up @@ -78,8 +78,10 @@ def _real_extract(self, url):
raise ValueError("JSON data not found")
metadata = json.loads(matched.group(1))
url = metadata["page"]["page"]["layout"][1]["columns"][0]["modules"][0]["data"]["encodings"][0]["url"]


upload_date = metadata['page']['page']['layout'][1]['columns'][0]['modules'][0]['data']['uploadDate']
video_status = metadata['page']['page']['layout'][1]['columns'][0]['modules'][0]['data']['videoStatus']
if metadata['page']['page']['layout'][1]['columns'][0]['modules'][0]['data']['authorFormattedFull'] != 'NA':
author = metadata['page']['page']['layout'][1]['columns'][0]['modules'][0]['data']['authorFormattedFull']

import pdb
pdb.set_trace()
Expand Down

0 comments on commit 3bee446

Please sign in to comment.