Skip to main content

Basic Twitter NLP

Description: Simple set of comands to work with twitter and text sediment analysis

NEEDED: Twitter Developer account for bearer token Twitter Developer

Getting Started


Build Database to Store tweets and analysis. It will create the 5 tables needed for the process

db_init(con)

Add Querys. It takes any query that is allowed by your Twitter api acesses. Twitter Query Help Guide

add_query(twitter_query, con)

Run Process. This will run the scrape and NLP process and store them in the tables

run_tw_nlp(con, client, query=None, inc_rt=False)

con : SQLite3 connection con = sqlite3.connection('DATABASE_NAME.db')

client : twitter bearer token client = tweepy.Client(bearer_token='bearer')

query : query index number which can be found in the "query_idx" column in the queries table

inc_rt : to include retweets in text analysis

Metadata

Release files for basictwitternlp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for basictwitternlp 0.1.1
File Size Uploaded
basictwitternlp-0.1.1.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for basictwitternlp 0.1.1
File Interpreter ABI Platform
basictwitternlp-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / basictwitternlp-0.1.1.tar.gz

Download URL basictwitternlp-0.1.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8274733503ee8cbf5ad272fc30ba774ee18fb7e0132d97a36c7af09e8bc79e86
BLAKE2b-256 checksum
How to use checksums
a3533f0c74596ff64e778e401134087ac0175ab684a531a2edcbf35dac969d72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 CPython/3.9.12

Release files / basictwitternlp-0.1.1-py3-none-any.whl

Download URL basictwitternlp-0.1.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba300224a043c6afa2a3336c0a2a549402ca9e07a346a1abc896ae99482992ad
BLAKE2b-256 checksum
How to use checksums
f958f482223a7648d72d6aaad9e5acfc085824e716729fdf27d97c503ef3f229
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 CPython/3.9.12

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page