
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
twitter-webscraper
Advanced tools
A Twitter web scraper built with TypeScript and Puppeteer ## Installation To use this package in your project, run: ```bash npm i twitter-webscraper ``` ## Features - Log in to your Twitter account - Scrape tweets - Scrape user's information -
A Twitter web scraper built with TypeScript and Puppeteer
To use this package in your project, run:
npm i twitter-webscraper
const { Scraper } = require('twitter-webscraper');
const scraper = new Scraper();
(async () => {
// It will initialize the headless browser
await scraper.initializeBrowser();
// It's not necessary to log in, but if you want to have access to
// all of the features, then you need to log in.
await scraper.login('username or email', 'password');
const userInfo = await scraper.getUserInfo('username');
console.log(userInfo);
// It will close the headless browser.
// You have to write this at the end of your code.
scraper.browser.close();
})();
| Method | Description |
|---|---|
initializeBrowser() | It will initialize the headless browser |
login(username_or_email: string, password: string) | Log in to your Twitter account |
getUserInfo(username: string) | Scrape information of the given user |
getFollwers(username: string) | Scrape followers of the given user |
getFollwing(username: string) | Scrape following of the given user |
getTweet(link: string) | Scrape the given tweet |
browser.close() | It will close the headless browser |
If you encounter a bug or you want to add new features, feel free to submit issues and enhancement requests.
FAQs
A Twitter web scraper built with TypeScript and Puppeteer ## Installation To use this package in your project, run: ```bash npm i twitter-webscraper ``` ## Features - Log in to your Twitter account - Scrape tweets - Scrape user's information -
We found that twitter-webscraper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.