Skip to main content

a python library to clean tweets fetched from the Twitter API.

Project description

CleanTweet version 0.1.1

CleanTweet helps in Natural Language Processing tasks especially

in the area of preprocessing and cleaning your data fetched

from the Twitter API Backend.

Installation

pip install cleantweet

Get Started

How to clean your Twitter Object:

Example 1: If the text file containing the Twitter JSON Data is

in the same directory as project files.

from cleantweet import CleanTweet

Instantiate the CleanTwitter Object

data = CleanTweet('sample_text.txt')

Call the clean method

print(data.clean())

Example 2: When the above is not the case.

from cleantweet import CleanTweet

import the os module

import os

Instantiate the CleanTwitter Object

data = CleanTweet(os.path.join('./nameoffolder', 'sampling.txt'))

Call the clean method

print(data.clean())

In this first version, the method clean() would only preprocess

and clean the Twitter Object's default parameters which are

the id and text.

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

cleantweet-0.1.0.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

cleantweet-0.1.0-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page