Author
|
zPlus <zplus@peers.community>
2024-12-25 10:22:01
|
Committer
|
zPlus <zplus@peers.community>
2024-12-25 10:22:01
|
Commit
|
28e21db
(patch)
|
Tree
|
7178ccc
|
Parent(s)
|
|
[XKCD] Skip #1608.
This is not a comics, but a small video game.
commits diff:
d48cc40..28e21db
1 file changed,
6 insertions,
0 deletions
—
download
Diffstat
Diff options
+6/-0
M scripts/xkcd/xkcd.py
18
|
18
|
|
END_NUMBER = int(os.environ['END_NUMBER'])
|
19
|
19
|
|
|
20
|
20
|
|
for n in range(START_NUMBER, END_NUMBER + 1):
|
|
21
|
+ |
|
|
22
|
+ |
# Skip https://xkcd.com/1608/ "Hoverboard"
|
|
23
|
+ |
# This is not an image/comics but a small video game
|
|
24
|
+ |
if n == 1608:
|
|
25
|
+ |
continue
|
|
26
|
+ |
|
21
|
27
|
|
req = requests.get(url = f"https://xkcd.com/{n}/info.0.json")
|
22
|
28
|
|
|
23
|
29
|
|
if req.status_code != 200:
|