From 7dc8ce14c3776302f7a4bc97e32d64d2bac14f97 Mon Sep 17 00:00:00 2001 From: Amit Singh Date: Tue, 19 May 2026 17:14:49 +0530 Subject: [PATCH 1/2] fix: updates response status check for patching sources (#36) Signed-off-by: Amit Singh --- scripts/helper.py | 2 +- scripts/newsdata_io.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/helper.py b/scripts/helper.py index b9f47b4..f84b181 100644 --- a/scripts/helper.py +++ b/scripts/helper.py @@ -81,5 +81,5 @@ def patch_sources(api_key: str, base_url: str, uriDigest: str, body: dict): endpoint = f"{base_url}/api/v1/source/{uriDigest}" headers = {"X-API-Key": api_key, "Content-Type": "application/json"} status, _ = post_request(endpoint, headers, body, timeout=90, method="PATCH") - if status != 200: + if status != 204: print(f"Error: failed to patch source {uriDigest}: {status}", file=sys.stderr) diff --git a/scripts/newsdata_io.py b/scripts/newsdata_io.py index c515f15..e217a7e 100644 --- a/scripts/newsdata_io.py +++ b/scripts/newsdata_io.py @@ -28,7 +28,7 @@ def get_claims(src_domain_url: str): if response.status_code != 200: print(f"Error: couldn't fetch claims for {src_domain_url}: {response.status_code}") resp_body = response.json() - if resp_body.get("results") is not None and resp_body.get("results").get("suggestion") is not None: - print(f"Suggested domain url(s) for {src_domain_url}: {resp_body['results']['suggestion']}") + if resp_body.get("results") is not None and resp_body.get("results")[0].get("suggestion") is not None: + print(f"Suggested domain url(s) for {src_domain_url}: {resp_body['results'][0]['suggestion']}") return None return response.json()["results"] From 25a8306090c7a70a71fa0a74596b816e77ccc34a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 19 May 2026 11:49:37 +0000 Subject: [PATCH 2/2] feat(sources): adds new most popular sources --- claims/al_jazeera/drc_faces_deadly_ebola_resurge.yaml | 4 ++++ claims/bbc/uae_reports_drone_strike_near.yaml | 4 ++++ claims/fox_news/us_nigeria_strike_isis_fighte.yaml | 4 ++++ claims/hindustan_times/at_least_nine_dead_in_china_af.yaml | 4 ++++ claims/india_times/farm_fires_punjab_reports_115.yaml | 4 ++++ claims/ndtv/4_dead_8_injured_as_gunman_op.yaml | 4 ++++ .../forget_cellular_data_china_s.yaml | 4 ++++ claims/the_guardian/california_island_fire_linked.yaml | 4 ++++ claims/the_new_york_times/meta_reassigns_7_000_employees.yaml | 4 ++++ claims/yahoo_finance/michael_burry_says_today_s_top.yaml | 4 ++++ 10 files changed, 40 insertions(+) create mode 100644 claims/al_jazeera/drc_faces_deadly_ebola_resurge.yaml create mode 100644 claims/bbc/uae_reports_drone_strike_near.yaml create mode 100644 claims/fox_news/us_nigeria_strike_isis_fighte.yaml create mode 100644 claims/hindustan_times/at_least_nine_dead_in_china_af.yaml create mode 100644 claims/india_times/farm_fires_punjab_reports_115.yaml create mode 100644 claims/ndtv/4_dead_8_injured_as_gunman_op.yaml create mode 100644 claims/south_china_morning_post/forget_cellular_data_china_s.yaml create mode 100644 claims/the_guardian/california_island_fire_linked.yaml create mode 100644 claims/the_new_york_times/meta_reassigns_7_000_employees.yaml create mode 100644 claims/yahoo_finance/michael_burry_says_today_s_top.yaml diff --git a/claims/al_jazeera/drc_faces_deadly_ebola_resurge.yaml b/claims/al_jazeera/drc_faces_deadly_ebola_resurge.yaml new file mode 100644 index 0000000..bd75f20 --- /dev/null +++ b/claims/al_jazeera/drc_faces_deadly_ebola_resurge.yaml @@ -0,0 +1,4 @@ +"sourceUriDigest": "d77fe702137b27c8c8f04538dde3a2a48a1c9849d5e116e58aec80b229f4632f" +"summary": "The new Ebola outbreak has been reported in the towns of Rwampara, Mongwalu, and Bunia in northeastern DRC" +"title": "DRC faces deadly Ebola resurgence amid worsening humanitarian crisis" +"uri": "https://www.aljazeera.com/features/2026/5/17/drc-faces-deadly-ebola-resurgence-amid-worsening-humanitarian-crisis" diff --git a/claims/bbc/uae_reports_drone_strike_near.yaml b/claims/bbc/uae_reports_drone_strike_near.yaml new file mode 100644 index 0000000..3af6d6b --- /dev/null +++ b/claims/bbc/uae_reports_drone_strike_near.yaml @@ -0,0 +1,4 @@ +"sourceUriDigest": "ff03f7306b36e74d5dad4a7b18f821862b90afd53cc6f01dc7fd3b07796b1404" +"summary": "The country is investigating the source of the strike, which it says came from its western border." +"title": "UAE reports drone strike near Abu Dhabi nuclear power plant" +"uri": "https://www.bbc.com/news/articles/cwy27pkj1l1o" diff --git a/claims/fox_news/us_nigeria_strike_isis_fighte.yaml b/claims/fox_news/us_nigeria_strike_isis_fighte.yaml new file mode 100644 index 0000000..790dac9 --- /dev/null +++ b/claims/fox_news/us_nigeria_strike_isis_fighte.yaml @@ -0,0 +1,4 @@ +"sourceUriDigest": "3bc8be7f5c80be275ea61e7aee0ba9cb8dac3b4536e39515942985f33e9d53b8" +"summary": "U.S. and Nigerian forces struck ISIS targets in Nigeria days after President Trump announced the killing of global ISIS leader Abu-Bilal al-Minuki." +"title": "US, Nigeria strike ISIS fighters again from the air after killing senior leader" +"uri": "https://www.foxnews.com/world/us-nigeria-strike-isis-fighters-air-killing-senior-leader" diff --git a/claims/hindustan_times/at_least_nine_dead_in_china_af.yaml b/claims/hindustan_times/at_least_nine_dead_in_china_af.yaml new file mode 100644 index 0000000..c7bf5f5 --- /dev/null +++ b/claims/hindustan_times/at_least_nine_dead_in_china_af.yaml @@ -0,0 +1,4 @@ +"sourceUriDigest": "16e7233814ff26725174c87e80e6da033de4feb7ea3fa5a904ef75dbc17541f3" +"summary": "The passengers were returning from planting sweet potatoes on Saturday and the truck fell into the river while crossing a bridge." +"title": "At least nine dead in China after vehicle swept into flooded river during heavy rain" +"uri": "https://www.hindustantimes.com/world-news/at-least-nine-dead-in-china-after-vehicle-swept-into-flooded-river-during-heavy-rain-101779124029765.html" diff --git a/claims/india_times/farm_fires_punjab_reports_115.yaml b/claims/india_times/farm_fires_punjab_reports_115.yaml new file mode 100644 index 0000000..ca4f1f6 --- /dev/null +++ b/claims/india_times/farm_fires_punjab_reports_115.yaml @@ -0,0 +1,4 @@ +"sourceUriDigest": "6472f88917d973b804e99cf32fcb87269d2557252739bc7bc137d8aa2da7b581" +"summary": "None" +"title": "Farm fires: Punjab reports 115 new cases" +"uri": "https://timesofindia.indiatimes.com/city/chandigarh/farm-fires-punjab-reports-115-new-cases/articleshow/131184684.cms" diff --git a/claims/ndtv/4_dead_8_injured_as_gunman_op.yaml b/claims/ndtv/4_dead_8_injured_as_gunman_op.yaml new file mode 100644 index 0000000..3fcd46f --- /dev/null +++ b/claims/ndtv/4_dead_8_injured_as_gunman_op.yaml @@ -0,0 +1,4 @@ +"sourceUriDigest": "bc65553a778a1c832967d1ff1fb318597ff5d87f5f935f6e76820cc514fb287f" +"summary": "None" +"title": "4 Dead, 8 Injured As Gunman Opens Fire In Southern Turkey: Report" +"uri": "https://www.ndtv.com/world-news/4-dead-8-injured-as-gunman-opens-fire-in-southern-turkey-report-11513477" diff --git a/claims/south_china_morning_post/forget_cellular_data_china_s.yaml b/claims/south_china_morning_post/forget_cellular_data_china_s.yaml new file mode 100644 index 0000000..9f5d9ff --- /dev/null +++ b/claims/south_china_morning_post/forget_cellular_data_china_s.yaml @@ -0,0 +1,4 @@ +"sourceUriDigest": "3295a82ed433fc6cfd4595d65a877b3d3bf55b313f467f2b584658e0df6ec3ee" +"summary": "For years, mobile carriers have billed users by the gigabyte. Now, China’s telecoms giants are seeking to monetise the artificial intelligence boom by introducing a new unit of measurement to monthly bills: the AI token. On Sunday, China Telecom unveiled nationwide, token-based pricing packages aimed at a range of customers – from casual users to developers and businesses – according to information listed on the company’s app. Consumer packages, tailored for everyday tasks, start at 9.9 yuan..." +"title": "Forget cellular data: China’s telecoms giants are selling AI token plans" +"uri": "https://www.scmp.com/tech/tech-trends/article/3353954/forget-cellular-data-chinas-telecoms-giants-are-selling-ai-token-plans" diff --git a/claims/the_guardian/california_island_fire_linked.yaml b/claims/the_guardian/california_island_fire_linked.yaml new file mode 100644 index 0000000..c506532 --- /dev/null +++ b/claims/the_guardian/california_island_fire_linked.yaml @@ -0,0 +1,4 @@ +"sourceUriDigest": "619af5b3da55bc1a969dade318bdb7cfa47011fe471235e97e162388450c01a2" +"summary": "Fire on Santa Rosa Island in Channel Islands national park becomes state’s largest this year and threatens rare plants A wildfire that broke out on an island in the Channel Islands national park has become California’s largest wildfire so far this year, burning through more than 10,000 acres, destroying historic structures and endangering rare plant communities that conservationists had struggled to reclaim. About six dozen firefighters have been deployed to control the blaze, which broke out on Friday, but their efforts have been undermined by strong winds. The fire is currently at 0% containment, according to a Cal Fire incident report . Continue reading..." +"title": "California island fire linked to sailor’s distress flare scorches 10,000 acres" +"uri": "https://www.theguardian.com/us-news/2026/may/18/california-national-park-fire-santa-rosa-island" diff --git a/claims/the_new_york_times/meta_reassigns_7_000_employees.yaml b/claims/the_new_york_times/meta_reassigns_7_000_employees.yaml new file mode 100644 index 0000000..3773f29 --- /dev/null +++ b/claims/the_new_york_times/meta_reassigns_7_000_employees.yaml @@ -0,0 +1,4 @@ +"sourceUriDigest": "f217d823160d39ca379a09044e1242ac641c8b1d79a1d6f499c59f08a1b67500" +"summary": "The company announced the changes two days before it plans to lay off 10 percent of its work force, or about 8,000 employees." +"title": "Meta Reassigns 7,000 Employees to Focus on A.I." +"uri": "https://www.nytimes.com/2026/05/18/technology/meta-reassigns-7000-employees-ai.html" diff --git a/claims/yahoo_finance/michael_burry_says_today_s_top.yaml b/claims/yahoo_finance/michael_burry_says_today_s_top.yaml new file mode 100644 index 0000000..6cd64fb --- /dev/null +++ b/claims/yahoo_finance/michael_burry_says_today_s_top.yaml @@ -0,0 +1,4 @@ +"sourceUriDigest": "844adf50f74b30951a08a382fffc9f1a904acd2d62e062db41d2647c72f904a4" +"summary": "None" +"title": "Michael Burry Says Today’s Top 10 Stocks Surged 784% in a Year. The Pre-Dot-Com Number Was 622%." +"uri": "https://finance.yahoo.com/markets/stocks/articles/michael-burry-says-today-top-131526825.html"