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
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,22 @@ Python scripts for interacting with planets.nu
4
4
Requires python to be installed on the computer: https://www.python.org/downloads/
5
5
6
6
1. pull_messages.py script
7
+
7
8
Use:
8
9
python pull_messages.py [GAME_ID]
9
10
10
11
GAME_ID is the 6-digit numeric game number that can be found in game history or in the URL of the game.
11
12
12
13
The script will:
14
+
13
15
a) check that the game exists and has finished (only finished games supported at the moment)
16
+
14
17
b) create a game_data/tmp local folder and download the game_data into the folder as a zip file
18
+
15
19
c) unzip the file into a game_data/tmp
20
+
16
21
d) extract all of the messages and export them into messages_[GAME_ID].csv file. The csv file can be opened using any text editor or Excel/Excel-like program
22
+
17
23
e) remove the files from game_data/tmp to save disk space
24
+
18
25
f) the zip file will remain in game_data folder. It can be deleted
0 commit comments