
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
twitter-downloader
Advanced tools
npm install twitter-downloader
yarn add twitter-downloader
npm install github:TobyG74/twitter-downloader
const { TwitterDL } = require("twitter-downloader");
const twitter_video_url = "https://twitter.com/AnimeWithRJ/status/1645156770266923008";
const twitter_image_url = "https://twitter.com/GenshinImpact/status/1645308130857820161";
const options = {
authorization?: "YOUR_AUTHORIZATION", // undefined == use default authorization
cookie?: "YOUR_COOKIE" // to display sensitive / nsfw content (no default cookies)
proxy?: "YOUR_PROXY" // support http, https, socks5
}
TwitterDL(twitter_video_url, options)
.then((result) => {
console.log(result);
})
.catch((e) => {
console.log(e);
});
authorization
- Authorization header for requestcookie
- Cookie for view sensitive / nsfw contentproxy
- Proxy for request (http, https, socks5)status: "success" | "error"
message?: string
result?: {
id: string
createdAt: string
description: string
languange: string
possiblySensitive: boolean
possiblySensitiveEditable: boolean
isQuoteStatus: boolean
mediaCount: number
author: {
username: string
bio: string
possiblySensitive: boolean
verified: boolean
location: string
profileBannerUrl: string
profileImageUrl: string
url: string
statistics: {
favoriteCount: number
followersCount: number
friendsCount: number
statusesCount: number
listedCount: number
mediaCount: number
}
}
statistics: {
replieCount: number
retweetCount: number
favoriteCount: number
bookmarkCount: number
viewCount: number
}
media: Media[]
}
/** Image Media */
{
type: string
image: string
expandedUrl: string
}[]
/** Video Media */
{
type: string
expandedUrl: string
cover: string
duration: string
videos: {
bitrate: number
content_type: string
quality: string
url: string
}[]
}[]
This project is open to contributions. Whether you are a beginner or an experienced developer, you can contribute to this project. If you are interested in contributing to this project, please read the CONTRIBUTING.md file before submitting a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Scraper for download Media from Twitter
The npm package twitter-downloader receives a total of 55 weekly downloads. As such, twitter-downloader popularity was classified as not popular.
We found that twitter-downloader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.