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
Codebutton on the GitHub repository. - Create an account or sign in if you haven’t already, and then click
Codespaceand selectNew Codespacefrom the dropdown.
- Click the green
-
Upload the
tweets.jsfile:- Drag the
tweets.jsfile from the data folder of your Twitter download right underREADME.mdin the Codespace.
- Drag the
-
Open the Terminal:
- If the terminal is not already open:
- Windows: Press
Ctrl+Pto open the command palette, then typeterminal: create new terminaland pressEnter. - macOS: Press
Cmd+Pto open the command palette, then typeterminal: create new terminaland pressEnter.
- Windows: Press
- If the terminal is not already open:
-
Run the Script:
- Type
python converter.pyin the terminal and then pressEnter.
- Type
-
Get the CSV File:
- A file named
tweets.csvwill 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