Skip to main content

Twpy is an open-source intelligence library for twitter, NO API - NO LIMIT

Project description

Twitter High level scraper for humans.

Features

  • NO LIMIT, NO API required

  • Fast and easy to use

  • Working with python 3.6+

  • 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
$ python -m pip install twpy

Usage

Guidance of using Twpy :

from twpy import TwpyClient
from twpy.serializers import to_pandas, to_json, to_list

# create twpy client object
tc = TwpyClient()

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

# 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)
Supported methods

method

description

get_followers()

get user followers

get_friends()

get user followings/friends

get_timeline()

get user timeline/tweets

get_user()

get user profile info

Meta

Fardin Allahverdinazhand - @0x0ptim0us - 0x0ptim0us@gmail.com Distributed under the MIT license. see LICENSE.txt for more information.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twpy-1.2.tar.gz (8.0 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page