Skip to main content

Scrape Twitter based off query and runs NLTK vader and cos similarity model

Project description

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

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

basictwitternlp-0.1.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

basictwitternlp-0.1.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file basictwitternlp-0.1.1.tar.gz.

File metadata

  • Download URL: basictwitternlp-0.1.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 CPython/3.9.12

File hashes

Hashes for basictwitternlp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8274733503ee8cbf5ad272fc30ba774ee18fb7e0132d97a36c7af09e8bc79e86
MD5 35a1651de97918bcd51d5f1cec86eaf5
BLAKE2b-256 a3533f0c74596ff64e778e401134087ac0175ab684a531a2edcbf35dac969d72

See more details on using hashes here.

File details

Details for the file basictwitternlp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for basictwitternlp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba300224a043c6afa2a3336c0a2a549402ca9e07a346a1abc896ae99482992ad
MD5 ca0a003480984da2cb2dbf4bfceec775
BLAKE2b-256 f958f482223a7648d72d6aaad9e5acfc085824e716729fdf27d97c503ef3f229

See more details on using hashes here.

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