A simple script to convert tweets.js
files from a Twitter download into a CSV file.
-
Get the Code and Setup the Codespace:
- Click the green
Code
button on the GitHub repository. - Create an account or sign in if you haven’t already, and then click
Codespace
and selectNew Codespace
from the dropdown.
- Click the green
-
Upload the
tweets.js
file:- Drag the
tweets.js
file from the data folder of your Twitter download right underREADME.md
in the Codespace.
- Drag the
-
Open the Terminal:
- If the terminal is not already open:
- Windows: Press
Ctrl
+P
to open the command palette, then typeterminal: create new terminal
and pressEnter
. - macOS: Press
Cmd
+P
to open the command palette, then typeterminal: create new terminal
and pressEnter
.
- Windows: Press
- If the terminal is not already open:
-
Run the Script:
- Type
python converter.py
in the terminal and then pressEnter
.
- Type
-
Get the CSV File:
- A file named
tweets.csv
will be generated in the same directory, containing the converted tweet data. - To download the
tweets.csv
:- Navigate to the file in your Codespace.
- Right-click on the file and select 'Download'.
- Choose the destination on your local machine where you want to save the file and confirm the download.
- A file named