Trevin Chow
4bae05e7fa
fix(reddit): use browser-like headers to fix HTTP 403 from urllib
...
Reddit's public JSON endpoint returns 403 to requests carrying the
generic User-Agent and minimal header set urllib defaults to, while
matching curl requests succeed. Switch to a current-Chrome User-Agent
and add Accept-Language / Accept-Encoding / Connection headers so the
fingerprint matches a normal browser. Reddit now serves gzip when
Accept-Encoding includes it, so decompress the body before JSON parse.
Update the user-agent assertion in tests/test_reddit_public.py to match
the new browser-like string. Closes #199 .
Co-authored-by: Franco Carballar <francocarballar@gmail.com >
2026-05-17 09:20:37 -07:00
..
2026-04-22 14:31:39 -07:00
2026-01-23 12:37:31 -08:00
2026-04-08 10:52:23 -07:00
2026-04-23 20:15:02 -04:00
2026-05-16 20:52:56 -07:00
2026-05-17 01:03:55 -07:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-05-17 00:39:30 -07:00
2026-04-24 11:52:48 -04:00
2026-05-17 00:51:21 -07:00
2026-04-23 20:15:02 -04:00
2026-04-24 11:52:48 -04:00
2026-04-24 11:52:48 -04:00
2026-04-24 11:52:48 -04:00
2026-04-24 11:52:48 -04:00
2026-04-24 11:52:48 -04:00
2026-04-24 11:52:48 -04:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-05-09 19:05:41 -07:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-05-16 09:01:28 -04:00
2026-04-24 11:52:48 -04:00
2026-05-16 19:25:05 -07:00
2026-05-16 22:42:26 -07:00
2026-05-16 21:40:22 -07:00
2026-05-16 21:34:22 -07:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-05-17 00:42:07 -07:00
2026-05-16 19:37:16 -07:00
2026-05-16 19:32:06 -07:00
2026-05-16 21:13:17 -07:00
2026-05-17 01:03:55 -07:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-05-17 00:39:44 -07:00
2026-04-23 20:15:02 -04:00
2026-05-17 00:21:57 -07:00
2026-04-24 11:52:48 -04:00
2026-04-23 20:15:02 -04:00
2026-05-17 00:00:59 -07:00
2026-04-24 11:52:48 -04:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-05-17 01:03:55 -07:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-05-17 09:20:37 -07:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-04-24 11:52:48 -04:00
2026-05-17 00:13:56 -07:00
2026-04-23 20:15:02 -04:00
2026-05-16 21:40:22 -07:00
2026-05-17 00:50:05 -07:00
2026-05-17 00:31:09 -07:00
2026-04-24 11:52:48 -04:00
2026-05-16 21:40:22 -07:00
2026-05-16 23:36:55 -07:00
2026-05-16 23:39:14 -07:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-05-16 18:17:33 -07:00
2026-05-15 22:34:52 -07:00
2026-04-23 20:15:02 -04:00
2026-05-16 22:57:32 -07:00
2026-04-25 14:17:47 -07:00
2026-05-15 08:07:43 -07:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-05-16 18:17:33 -07:00
2026-04-24 11:52:48 -04:00
2026-05-16 22:57:04 -07:00
2026-05-15 08:07:43 -07:00
2026-04-23 20:15:02 -04:00
2026-04-23 20:15:02 -04:00
2026-04-26 14:16:14 -07:00
2026-04-23 20:15:02 -04:00
2026-05-17 01:03:15 -07:00