GithubHelp home page GithubHelp logo

nicolasgasco / python_twitter_analyzer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9.33 MB

Capstone project of CodingNomads' online Python Programming bootcamp. Over 100k tweets were mined using tweepy (Twitter API), stored using SQLAlchemy and finally analyzed.

Python 100.00%
tweepy tweepy-api sqlalchemy sqlalchemy-python sqlalchemy-database sql python twitter twitter-api tweet-analysis

python_twitter_analyzer's Introduction

Python Twitter Analyzer

CodingNomads final project using tweepy and sqlalchemy


This is the final project of the online Python course by CodingNomads.

Aim

The aim of the project is providing a series of statistics (e.g. average user count or most popular hours) on a set of Twitter tweets fetched using tweepy and stored in a database using sqlalchemy.
The results of said statistics can be previewed in the three .txt files in the main folder of the project:

  • results_text_analysis.txt: stats on the text of the tweets, e.g. most frequently used symbols and longest word in the set.
  • results_time_analysis.txt: stats on the time when the tweets were written, e.g. most popular hours or oldest tweet.
  • results_users_analysis.txt: stats on the users, e.g. users with most followers or average followers/followed accounts ratio.

Description

The project consists of a series of scripts aimed at:

  1. Use tweepy to fetch a list of users who recently wrote a tweet in English containing the word "cyberpunk". This was done to push the set of tweets towards the gaming world.
  2. Use tweepy to fetch the last 20 tweets published by said users. Only tweets in English and that are not retweets of other tweets were accepted.
  3. Use sqlalchemy to store and retrieve all the data in a database.
  4. Use python scripts to analyze the collected data (one file where the results are printed and written in a .txt file and another with all the actual functions used).
  5. All data was stored in the database provided in the homonymous separate folder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.