
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
twitter-cookie
Advanced tools
A simple utility to get twitter cookies (as JSON array). Can be used for initialize twitter client (agent-twitter-client or @the-convocation/twitter-scraper)
A simple utility to help you extract your Twitter (X) cookies in JSON format, making it easy to use with libraries like agent-twitter-client
or @the-convocation/twitter-scraper
.
Many Twitter API alternatives require your browser cookies to authenticate requests. This tool simplifies the process of extracting those cookies in the correct format.
npm install -g twitter-cookie
twitter-cookie <username> <password>
Or simply without installation:
npx twitter-cookie <username> <password>
Your cookies will be printed to the console as JSON array. You can then use it to initialize the Scraper
class from agent-twitter-client
or @the-convocation/twitter-scraper
.
import { Scraper } from "agent-twitter-client";
const scraper = new Scraper();
await scraper.setCookies(cookies);
// use scraper to do something...
Keep your cookie file secure and never share it. These cookies provide full access to your Twitter account.
MIT License
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.