All Projects → sebinsua → Scrape Twitter

sebinsua / Scrape Twitter

Licence: gpl-3.0
🐦 Access Twitter data without an API key. [DEPRECATED]

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Scrape Twitter

Dmarchiver
A tool to archive the direct messages, images and videos from your private conversations on Twitter
Stars: ✭ 204 (+22.89%)
Mutual labels:  conversation, twitter, tweets
Spam Bot 3000
Social media research and promotion, semi-autonomous CLI bot
Stars: ✭ 79 (-52.41%)
Mutual labels:  cli, scraper, twitter
Sarcasm Detection
Detecting Sarcasm on Twitter using both traditonal machine learning and deep learning techniques.
Stars: ✭ 73 (-56.02%)
Mutual labels:  twitter, tweets
Instascrape
🚀 A fast and lightweight utility and Python library for downloading posts, stories, and highlights from Instagram.
Stars: ✭ 76 (-54.22%)
Mutual labels:  cli, scraper
Tta Elastic
Official Trump Twitter Archive V2 source
Stars: ✭ 104 (-37.35%)
Mutual labels:  twitter, tweets
Twitterldatopicmodeling
Uses topic modeling to identify context between follower relationships of Twitter users
Stars: ✭ 48 (-71.08%)
Mutual labels:  twitter, tweets
Pitchfork Npm
An Unofficial Pitchfork Music API client for Node.js
Stars: ✭ 50 (-69.88%)
Mutual labels:  cli, scraper
Twitter Sentiment Analysis
This script can tell you the sentiments of people regarding to any events happening in the world by analyzing tweets related to that event
Stars: ✭ 94 (-43.37%)
Mutual labels:  twitter, tweets
Social ids
Get user ids from social network handlers
Stars: ✭ 9 (-94.58%)
Mutual labels:  cli, twitter
Cum
comic updater, mangafied
Stars: ✭ 117 (-29.52%)
Mutual labels:  cli, scraper
Headlesschrome
A Go package for working with headless Chrome. Run interactive JavaScript commands on web pages with Go and Chrome.
Stars: ✭ 112 (-32.53%)
Mutual labels:  cli, scraper
Twurl
OAuth-enabled curl for the Twitter API
Stars: ✭ 1,648 (+892.77%)
Mutual labels:  cli, twitter
Twweet Cli
🐦 Tweet right from your cli without even opening your browser.
Stars: ✭ 47 (-71.69%)
Mutual labels:  twitter, tweets
Huginn
Create agents that monitor and act on your behalf. Your agents are standing by!
Stars: ✭ 33,694 (+20197.59%)
Mutual labels:  scraper, twitter
Skraper
Kotlin/Java library and cli tool for scraping posts and media from various sources with neither authorization nor full page rendering (Facebook, Instagram, Twitter, Youtube, Tiktok, Telegram, Twitch, Reddit, 9GAG, Pinterest, Flickr, Tumblr, IFunny, VK, Pikabu)
Stars: ✭ 72 (-56.63%)
Mutual labels:  scraper, twitter
Guffer
Guffer tweets based on a daily schedule
Stars: ✭ 12 (-92.77%)
Mutual labels:  twitter, tweets
Tweetscape
A WebVR experience displaying tweets in real-time along a 3D timeline
Stars: ✭ 132 (-20.48%)
Mutual labels:  twitter, timeline
Twitter Get Old Tweets Scraper
A data scraper for retrieving old tweets in Twitter using Python3.
Stars: ✭ 27 (-83.73%)
Mutual labels:  scraper, tweets
Tweets
🐦 Tweet every 24 pull request
Stars: ✭ 8 (-95.18%)
Mutual labels:  twitter, tweets
Twint
An advanced Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a user's followers, following, Tweets and more while evading most API limitations.
Stars: ✭ 12,102 (+7190.36%)
Mutual labels:  twitter, tweets

scrape-twitter Build Status npm version

🐦 Access Twitter data without an API key

DEPRECATED: The next version of Twitter auto-generates all of the class names and therefore is going to be much more difficult to screen scrape. I might come up with a better solution...


This module provides command line interfaces to scrape: profiles, timelines, connections, likes, search and conversations.

It also exposes both streams and a promise returning function to help accessing Twitter in your own applications.

Real-time firehoses can be created using the companion module monitor-head-stream.

Features

  • [x] Get Twitter data without being required to configure an API key.
  • [x] Twitter can't constrain access as easily as they can to an API or an individual API key. Any constraints introduced would apply to their public site. A scraper can be fixed; you are no longer beholden to Twitter.
  • [x] Grab timelines, whole conversations, profiles, connections, likes, etc.
  • [x] Automatically pages to fetch all tweets.
  • [x] Provides metadata on how tweet replies are linked together. e.g. isReplyToId

Example

Get profile

$ scrape-twitter profile sebinsua
# ...

Get timeline

$ scrape-twitter timeline nouswaves
# ...

Get likes

This command requires a valid login. It will check for the following environment variables: TWITTER_USERNAME, TWITTER_PASSWORD, TWITTER_KDT. But can also pick these up from a dotenv file at the path ~/.scrape-twitter. The first time you login you will be asked to store the TWITTER_KDT - this is used by Twitter to recognise your device.

$ scrape-twitter likes sebinsua
# ...

Get connections

This command also requires a valid login.

$ scrape-twitter connections sebinsua --type=following
# ...

Get conversation

$ scrape-twitter conversation ctbeiser 691766715835924484
# ...

Search

$ scrape-twitter search --query "from:afoolswisdom motivation" --type latest
# ...

Get list

$ scrape-twitter list nouswaves list
# ...

JSON interface plays nicely with CLI tools like jq, coreutils/gshuf and terminal-notifier

For example, a MOTD-like script might contain:

scrape-twitter search --query="from:afoolswisdom knowledge" | jq -r '.[].text' | gshuf -n 1 | terminal-notifier -title "Knowledge (MOTD)"

Install

With yarn:

yarn global add scrape-twitter

With npm:

npm install -g scrape-twitter

API

new TimelineStream(username: string, { retweets: boolean, replies: boolean, count: ?number })

Create a ReadableStream<Tweet> for the timeline of a username.

new LikeStream(username: string, { count: ?number, env: process.env })

Create a ReadableStream<Tweet> for the likes of a username.

new ConnectionStream(username: string, type: 'following' | 'followers', process.env)

Create a ReadableStream<UserConnection> for the connections of a username.

new ConversationStream(username: string, id: string, { count: ?number })

Create a ReadableStream<Tweet> for the conversation that belongs to a username and tweet id.

new ThreadedConversationStream(id: string)

Create a ReadableStream<Tweet> for the thread that belongs to a tweet id.

new TweetStream(query: string, type: 'top' | 'latest', { count: ?number })

Create a ReadableStream<Tweet> for the tweets that match a query and type.

new ListStream(username: string, list: string, { count: ?number })

Create a ReadableStream<Tweet> for the username's list.

getUserProfile(username: string)

Get a Promise<UserProfile> for a particular username.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].