├── .commitlintrc ├── .eslintrc.js ├── .github └── workflows │ ├── build.yml │ ├── docs.yml │ ├── publish.yml │ └── test.yml ├── .husky ├── commit-msg └── pre-commit ├── .npmignore ├── .prettierignore ├── .prettierrc ├── .yarnrc.yml ├── LICENSE ├── README.md ├── examples ├── cors-proxy │ ├── package.json │ ├── src │ │ └── index.mts │ ├── tsconfig.json │ └── yarn.lock ├── cycletls │ ├── README.md │ ├── package.json │ ├── src │ │ └── index.ts │ ├── tsconfig.json │ └── yarn.lock ├── etc-compat │ ├── package.json │ ├── src │ │ └── index.mts │ ├── tsconfig.json │ └── yarn.lock ├── node-integration │ ├── package.json │ ├── src │ │ ├── index.cjs │ │ └── index.mjs │ └── yarn.lock └── react-integration │ ├── .env.example │ ├── .eslintrc.cjs │ ├── README.md │ ├── index.html │ ├── package.json │ ├── public │ └── vite.svg │ ├── src │ ├── App.css │ ├── App.tsx │ ├── index.css │ ├── main.tsx │ └── vite-env.d.ts │ ├── tsconfig.json │ ├── tsconfig.node.json │ ├── vite.config.ts │ └── yarn.lock ├── jest.config.js ├── package.json ├── rollup.config.mjs ├── src ├── _cycletls.ts ├── _module.ts ├── api-data.ts ├── api-types.ts ├── api.ts ├── auth-user.test.ts ├── auth-user.ts ├── auth.test.ts ├── auth.ts ├── cycletls-fetch.ts ├── direct-messages-async.ts ├── direct-messages.test.ts ├── direct-messages.ts ├── errors.ts ├── platform │ ├── index.ts │ ├── node │ │ ├── index.ts │ │ └── randomize-ciphers.ts │ └── platform-interface.ts ├── profile.test.ts ├── profile.ts ├── rate-limit.test.ts ├── rate-limit.ts ├── relationships.test.ts ├── relationships.ts ├── requests.ts ├── scraper.test.ts ├── scraper.ts ├── search.test.ts ├── search.ts ├── test-utils.ts ├── timeline-async.ts ├── timeline-list.ts ├── timeline-relationship.ts ├── timeline-search.ts ├── timeline-tweet-util.ts ├── timeline-v1.ts ├── timeline-v2.test.ts ├── timeline-v2.ts ├── trends.test.ts ├── trends.ts ├── tweets.test.ts ├── tweets.ts ├── type-util.ts ├── xctxid.ts └── xpff.ts ├── test-setup.js ├── tsconfig.json ├── typedoc.json └── yarn.lock /.commitlintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/.commitlintrc -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/.github/workflows/docs.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx lint-staged -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | dist/ 3 | *.json -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/.prettierrc -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- 1 | nodeLinker: node-modules 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/README.md -------------------------------------------------------------------------------- /examples/cors-proxy/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/cors-proxy/package.json -------------------------------------------------------------------------------- /examples/cors-proxy/src/index.mts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/cors-proxy/src/index.mts -------------------------------------------------------------------------------- /examples/cors-proxy/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/cors-proxy/tsconfig.json -------------------------------------------------------------------------------- /examples/cors-proxy/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/cors-proxy/yarn.lock -------------------------------------------------------------------------------- /examples/cycletls/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/cycletls/README.md -------------------------------------------------------------------------------- /examples/cycletls/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/cycletls/package.json -------------------------------------------------------------------------------- /examples/cycletls/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/cycletls/src/index.ts -------------------------------------------------------------------------------- /examples/cycletls/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/cycletls/tsconfig.json -------------------------------------------------------------------------------- /examples/cycletls/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/cycletls/yarn.lock -------------------------------------------------------------------------------- /examples/etc-compat/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/etc-compat/package.json -------------------------------------------------------------------------------- /examples/etc-compat/src/index.mts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/etc-compat/src/index.mts -------------------------------------------------------------------------------- /examples/etc-compat/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/etc-compat/tsconfig.json -------------------------------------------------------------------------------- /examples/etc-compat/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/etc-compat/yarn.lock -------------------------------------------------------------------------------- /examples/node-integration/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/node-integration/package.json -------------------------------------------------------------------------------- /examples/node-integration/src/index.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/node-integration/src/index.cjs -------------------------------------------------------------------------------- /examples/node-integration/src/index.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/node-integration/src/index.mjs -------------------------------------------------------------------------------- /examples/node-integration/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/node-integration/yarn.lock -------------------------------------------------------------------------------- /examples/react-integration/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/react-integration/.env.example -------------------------------------------------------------------------------- /examples/react-integration/.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/react-integration/.eslintrc.cjs -------------------------------------------------------------------------------- /examples/react-integration/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/react-integration/README.md -------------------------------------------------------------------------------- /examples/react-integration/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/react-integration/index.html -------------------------------------------------------------------------------- /examples/react-integration/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/react-integration/package.json -------------------------------------------------------------------------------- /examples/react-integration/public/vite.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/react-integration/public/vite.svg -------------------------------------------------------------------------------- /examples/react-integration/src/App.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/react-integration/src/App.css -------------------------------------------------------------------------------- /examples/react-integration/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/react-integration/src/App.tsx -------------------------------------------------------------------------------- /examples/react-integration/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/react-integration/src/index.css -------------------------------------------------------------------------------- /examples/react-integration/src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/react-integration/src/main.tsx -------------------------------------------------------------------------------- /examples/react-integration/src/vite-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/react-integration/src/vite-env.d.ts -------------------------------------------------------------------------------- /examples/react-integration/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/react-integration/tsconfig.json -------------------------------------------------------------------------------- /examples/react-integration/tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/react-integration/tsconfig.node.json -------------------------------------------------------------------------------- /examples/react-integration/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/react-integration/vite.config.ts -------------------------------------------------------------------------------- /examples/react-integration/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/examples/react-integration/yarn.lock -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/rollup.config.mjs -------------------------------------------------------------------------------- /src/_cycletls.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/_cycletls.ts -------------------------------------------------------------------------------- /src/_module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/_module.ts -------------------------------------------------------------------------------- /src/api-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/api-data.ts -------------------------------------------------------------------------------- /src/api-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/api-types.ts -------------------------------------------------------------------------------- /src/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/api.ts -------------------------------------------------------------------------------- /src/auth-user.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/auth-user.test.ts -------------------------------------------------------------------------------- /src/auth-user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/auth-user.ts -------------------------------------------------------------------------------- /src/auth.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/auth.test.ts -------------------------------------------------------------------------------- /src/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/auth.ts -------------------------------------------------------------------------------- /src/cycletls-fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/cycletls-fetch.ts -------------------------------------------------------------------------------- /src/direct-messages-async.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/direct-messages-async.ts -------------------------------------------------------------------------------- /src/direct-messages.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/direct-messages.test.ts -------------------------------------------------------------------------------- /src/direct-messages.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/direct-messages.ts -------------------------------------------------------------------------------- /src/errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/errors.ts -------------------------------------------------------------------------------- /src/platform/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/platform/index.ts -------------------------------------------------------------------------------- /src/platform/node/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/platform/node/index.ts -------------------------------------------------------------------------------- /src/platform/node/randomize-ciphers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/platform/node/randomize-ciphers.ts -------------------------------------------------------------------------------- /src/platform/platform-interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/platform/platform-interface.ts -------------------------------------------------------------------------------- /src/profile.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/profile.test.ts -------------------------------------------------------------------------------- /src/profile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/profile.ts -------------------------------------------------------------------------------- /src/rate-limit.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/rate-limit.test.ts -------------------------------------------------------------------------------- /src/rate-limit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/rate-limit.ts -------------------------------------------------------------------------------- /src/relationships.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/relationships.test.ts -------------------------------------------------------------------------------- /src/relationships.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/relationships.ts -------------------------------------------------------------------------------- /src/requests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/requests.ts -------------------------------------------------------------------------------- /src/scraper.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/scraper.test.ts -------------------------------------------------------------------------------- /src/scraper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/scraper.ts -------------------------------------------------------------------------------- /src/search.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/search.test.ts -------------------------------------------------------------------------------- /src/search.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/search.ts -------------------------------------------------------------------------------- /src/test-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/test-utils.ts -------------------------------------------------------------------------------- /src/timeline-async.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/timeline-async.ts -------------------------------------------------------------------------------- /src/timeline-list.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/timeline-list.ts -------------------------------------------------------------------------------- /src/timeline-relationship.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/timeline-relationship.ts -------------------------------------------------------------------------------- /src/timeline-search.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/timeline-search.ts -------------------------------------------------------------------------------- /src/timeline-tweet-util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/timeline-tweet-util.ts -------------------------------------------------------------------------------- /src/timeline-v1.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/timeline-v1.ts -------------------------------------------------------------------------------- /src/timeline-v2.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/timeline-v2.test.ts -------------------------------------------------------------------------------- /src/timeline-v2.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/timeline-v2.ts -------------------------------------------------------------------------------- /src/trends.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/trends.test.ts -------------------------------------------------------------------------------- /src/trends.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/trends.ts -------------------------------------------------------------------------------- /src/tweets.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/tweets.test.ts -------------------------------------------------------------------------------- /src/tweets.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/tweets.ts -------------------------------------------------------------------------------- /src/type-util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/type-util.ts -------------------------------------------------------------------------------- /src/xctxid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/xctxid.ts -------------------------------------------------------------------------------- /src/xpff.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/src/xpff.ts -------------------------------------------------------------------------------- /test-setup.js: -------------------------------------------------------------------------------- 1 | globalThis.PLATFORM_NODE = true; 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/tsconfig.json -------------------------------------------------------------------------------- /typedoc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/typedoc.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-convocation/twitter-scraper/HEAD/yarn.lock --------------------------------------------------------------------------------