Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9274f99

Browse files
committedMar 19, 2025
more request headers
1 parent 8035d31 commit 9274f99

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎inb4404.py

+6
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,14 @@ def load(url):
4848
'Sec-Fetch-Site': 'same-origin',
4949
'Sec-Fetch-Mode': 'navigate',
5050
'Sec-Fetch-Dest': 'document',
51+
'Sec-Fetch-User': '?1',
5152
'Accept-Language': 'en-US,en;q=0.5',
5253
'Referer': 'https://boards.4chan.org',
54+
'Connection': 'keep-alive',
55+
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
56+
'Accept-Language': 'en-US,en;q=0.5',
57+
'Priority': 'u=0, i',
58+
'TE': 'trailers',
5359
})
5460
return urllib.request.urlopen(req).read()
5561

0 commit comments

Comments
 (0)
Please sign in to comment.