https://github.com/cyio/twitter-thread-parser
A tool for get Twitter thread full text
https://github.com/cyio/twitter-thread-parser
javascript
Last synced: 11 months ago
JSON representation
A tool for get Twitter thread full text
- Host: GitHub
- URL: https://github.com/cyio/twitter-thread-parser
- Owner: cyio
- Created: 2023-12-07T01:50:50.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-07T01:59:34.000Z (about 2 years ago)
- Last Synced: 2024-04-29T21:14:34.277Z (over 1 year ago)
- Topics: javascript
- Language: JavaScript
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twitter Thread Parser
## Overview
`twitter-thread-parser` is a tool crafted to parse Twitter thread API responses and print the parsed data. This utility is built using JavaScript and comes with clear instructions for two distinct usage methods.
## Usage Methods
### Method 1: Browser Console Execution
1. Copy the function named `parseTwitterThread` provided in `index.js`
2. Open your browser's console and execute the copied function, providing the Twitter thread API response as an argument.
### Method 2: Local Script Execution with Node.js
> Make sure Node.js is installed on your system.
1. Copy the API response content of the desired Twitter thread and save it as `data.json`.
```
https://twitter.com/i/api/graphql/xxxxx/TweetDetail
```
2. Execute the parsing script using the following command in your terminal:
```sh
node index.js
```
3. Optionally, if you are using a Mac and want to copy the parsed result to the clipboard, use the following command:
```sh
node index.js | pbcopy
```