Update crawl_hindustan_times_and_get_top_news.py

This commit is contained in:
Mayank Gupta 2024-10-02 00:40:59 +05:30 committed by GitHub
parent cbef1c650b
commit c8ef30bfb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,11 +18,13 @@ from bs4 import BeautifulSoup
def fetch_ht_news() -> dict:
header = {
"Accept": "image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8",
"Sec-GPC": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"
"",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)\
AppleWebKit/537.36 (KHTML, like Gecko)\
Chrome/127.0.0.0 Safari/537.36",
"sec-ch-ua": '"Not)A;Brand";v="99", "Brave";v="127", "Chromium";v="127"',
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "Windows",