All Projects → 0x0ptim0us → twpy

0x0ptim0us / twpy

Licence: MIT license
Twitter High level scraper for humans.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to twpy

TwitterScraper
Scrape a User's Twitter data! Bypass the 3,200 tweet API limit for a User!
Stars: ✭ 80 (+37.93%)
Mutual labels:  twitter-bot, scraper, twitter-api
ColegaDondeEstaMiTFM
Un bot de Twitter que comparte cada hora un TFM hasta que Cristina Cifuentes enseñe el suyo.
Stars: ✭ 14 (-75.86%)
Mutual labels:  twitter-bot, scraper
stweet
Advanced python library to scrap Twitter (tweets, users) from unofficial API
Stars: ✭ 287 (+394.83%)
Mutual labels:  scraper, twitter-api
tweet-delete
Self-destructing Tweets so you too can be cool 😎
Stars: ✭ 68 (+17.24%)
Mutual labels:  twitter-bot, twitter-api
TinyFlowerBeds
Educational bot that posts a tiny flower bed on Twitter every few hours. Check it out if you're new to Python and open source!
Stars: ✭ 12 (-79.31%)
Mutual labels:  twitter-bot, twitter-api
twittered
Twitter API client for Java developers
Stars: ✭ 170 (+193.1%)
Mutual labels:  twitter-bot, twitter-api
twitter-like-bot
This app allows you to automate Twitter liking for specific keywords, hashtags, or even full sentences. The bot uses streaming API which means that everything happens in real time.
Stars: ✭ 30 (-48.28%)
Mutual labels:  twitter-bot, twitter-api
twitter-crypto-bot
This is a Twitter bot that tweets about cryptocurrencies prices every certain amount of minutes
Stars: ✭ 21 (-63.79%)
Mutual labels:  twitter-bot, twitter-api
larry
Larry 🐦 is a really simple Twitter bot generator that tweets random repositories from Github built in Go
Stars: ✭ 64 (+10.34%)
Mutual labels:  twitter-bot, twitter-api
Raymo111
My awesome profile README
Stars: ✭ 110 (+89.66%)
Mutual labels:  twitter-bot, twitter-api
TwitterAutoReplyBot
This is a tiny Python script that replies to a specified number of tweets containing a specified hashtag.
Stars: ✭ 33 (-43.1%)
Mutual labels:  twitter-bot, twitter-api
kafka-twitter-spark-streaming
Counting Tweets Per User in Real-Time
Stars: ✭ 38 (-34.48%)
Mutual labels:  twitter-api
cat-message
Finds cat images/videos/gifs on reddit, sends them to my mom via applescript
Stars: ✭ 35 (-39.66%)
Mutual labels:  scraper
barclayscrape
A small app to programmatically mainpulate Barclays online banking
Stars: ✭ 57 (-1.72%)
Mutual labels:  scraper
trawler
scraper for facebook, gab, google and tiktok
Stars: ✭ 20 (-65.52%)
Mutual labels:  scraper
BookingScraper
🌎 🏨 Scrape Booking.com 🏨 🌎
Stars: ✭ 68 (+17.24%)
Mutual labels:  scraper
kuon
🐦 [WIP] Twitter Client Library written in Rust 🦀
Stars: ✭ 47 (-18.97%)
Mutual labels:  twitter-api
spark-twitter-sentiment-analysis
Sentiment Analysis of a Twitter Topic with Spark Structured Streaming
Stars: ✭ 55 (-5.17%)
Mutual labels:  twitter-api
pinterest-web-scraper
Scraping Visually Similar Images from Pinterest
Stars: ✭ 26 (-55.17%)
Mutual labels:  scraper
python web scraping
Web scraping using python, requests and selenium
Stars: ✭ 40 (-31.03%)
Mutual labels:  scraper

Twpy

image image

Twitter High level scraper for humans.

Features

  • NO LIMIT, NO API required
  • Fast and easy to use
  • Working with python 3.5+
  • Integrated with pandas for data science research

Installation

Manual install via git :

$ git clone https://github.com/0x0ptim0us/twpy.git
$ cd twpy
$ python setup.py install

Install using pip:

$ pip3 install twpy
# or
$ python3 -m pip install twpy

Usage

Create Twpy object :

from twpy import TwpyClient 

# create twpy client object
tc = TwpyClient()

with proxy :

# or you can pass proxy
tc = TwpyClient(proxy="127.0.0.1:8080")

Get twpy current version :

tc.__version__
# '1.2.4'

Get user followers:

# get user followers, limited up to 50
# interval : delay between each request, default is 0 for no delay
# proxy : send traffic through proxy, default is none
followers_data = tc.get_followers(username="elonmusk", limit=50, interval=1)

Get user timeline:

tweets = tc.get_timeline(username="elonmusk", limit=50)

Get user profile:

user_info = tc.get_user(username="elonmusk")

Convert result object to other data structures :

from twpy.serializers import to_pandas, to_json, to_list
# convert result to pandas data frame, json and list
# pandas
pandas_sample = to_pandas(followers_data)
# json
json_sample = to_json(followers_data)
# list
list_sample = to_list(followers_data)

Search example:

# search user tweets until 2015
tweets = tc.search(username="elonmusk", until="2015")

# add limit and interval
tweets = tc.search(username="elonmusk", until="2015", limit=100, interval=1)

# search tweets contains `love` word
tweets = tc.search(query="love", limit=100, interval=1)

# search tweets which contains `love` word and were tweeted since 2015-01-01
tweets = tc.search(query="love", since="2015-01-01", limit=10)

Supported methods

method description
get_friends() get user followings/friends
get_timeline() get user timeline/tweets
get_user() get user profile info
search() search tweets with query and username

Meta

Fardin Allahverdinazhand - @0x0ptim0us - [email protected] Distributed under the MIT license. see LICENSE.txt for more information.

https://github.com/0x0ptim0us/twpy

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].