You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-1Lines changed: 32 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,10 +47,23 @@ To interact directly with the Advent of Code platform (e.g., for downloading inp
47
47
48
48
#### `aoc_headers.json`
49
49
50
-
This file contains HTTP headers used for all requests made to the Advent of Code platform. These headers include metadata such as the User-Agent to identify the source of the request.
50
+
This file contains HTTP headers used for all requests made to the Advent of Code platform. The most important header is the User-Agent, which helps identify your automated requests to the Advent of Code servers.
51
+
52
+
The User-Agent should follow this format:
53
+
- Project name and version
54
+
- URL to your project/GitHub repository (optional)
55
+
- Your contact information (email or GitHub username)
@@ -63,6 +76,24 @@ This ensures requests conform to the platform's API requirements and helps ident
63
76
64
77
This file stores the session token obtained from the Advent of Code website after logging into your account. It is required for authentication and allows access to personalized inputs and submission capabilities.
65
78
79
+
To obtain your session token:
80
+
81
+
1. Log into [Advent of Code](https://adventofcode.com)
82
+
83
+
2. Open your browser's Developer Tools:
84
+
- Chrome/Edge: Press F12 or Ctrl+Shift+I
85
+
- Firefox: Press F12 or Ctrl+Shift+I
86
+
- Safari: Enable 'Show Develop menu in menu bar' in Preferences > Advanced, then press Cmd+Option+I
87
+
88
+
3. Navigate to:
89
+
- Chrome/Edge: Application > Cookies > https://adventofcode.com
0 commit comments