Giter VIP home page Giter VIP logo

twitter-intelligence's Introduction

Twitter Intelligence

A project written in Python to twitter tracking and analysis without using Twitter API.

Prerequisites

  • This project is a Python 3.x application.
  • The package dependencies are in the file requirements.txt. Run that command to install the dependencies.

  • pip3 install -r requirements.txt

Database

  • SQLite is used as the database.
  • Tweet data are stored on the Tweet, User, Location, Hashtag, HashtagTweet tables.
  • The database is created automically.

Usage Example

Application work view:

screen shot 2018-07-06 at 12 18 51

  • Get help
  •  python3 tracking.py -h 
  • Get tweets by username

  •  python3 tracking.py --username "HaberSau" 
  • Get tweets by query

  •  python3 tracking.py --query "sakarya" 
  • Get tweet at a specific date range

  •  python3 tracking.py --username "HaberSau" --since 2015-09-10 --until 2015-09-12 --maxtweets 10 
  • If you get location of tweets, add --location "True" param but application will be slower due to new response times.

     python3 tracking.py --query "sakarya" --location "True"
  • If you want you can run the application on the docker.

  • docker build . -t twitter-intelligence

    docker run -it -p 5000:5000 --rm -v "images:/usr/src/app/images" twitter-intelligence

Analysis

analysis.py performs analysis processing. User, hashtag and location analyzes are performed.

  • Get help:

  • python3 analysis.py -h
  • for location analysis

  • python3 analysis py --location

    map

    location analysis runs through address http://localhost:5000/locations

    You must write Google Map Api Key in setting.py to display google map.

    GOOGLE_MAP_API_KEY='YOUR_GOOGLE_MAP_API_KEY'
  • Runs hashtag analysis.

  • python3 analysis.py --hashtag

    hashtag

  • Runs user analysis.

  • python3 analysis.py --user

    Graphical User Interface

    If you want run gui application, you should change "#PyQt5==5.11.2" to "PyQt5==5.11.2" in requirements.txt and you can run the that command.

    pip3 install -r requirements.txt

    socialgui.py used for gui application

    twitter-intelligence's People

    Contributors

    batuhaniskr avatar

    Stargazers

     avatar

    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.