mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-06 17:40:55 +00:00
Update crawl_hindustan_times_and_get_top_news.py
This commit is contained in:
parent
cbef1c650b
commit
c8ef30bfb8
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user