Giter Site home page Giter Site logo

tvstats's Introduction

Tvstats

Scrape data of all the episodes of a Tv Series from IMDB.

Installation

Run

python setup.py install

Dependencies

tvstats is based on Python 2.7. Requires BeautifulSoup4 for parsing, requests for downloading html. Matplotlib is required(optional) for using graph module.

Usage

Run the simple command

tvstats url

to generate json data. URL should point to homepage of a tv series. eg. http://www.imdb.com/title/tt0108778/?ref_=fn_al_tt_1

For options and help run

tvstats -h

Why?

Here are my reasons:

  • I was bored and had time to kill.
  • I love watching Tv Series. Thought it would be good to analyse some data before starting a new one.
  • Graphs are fun.
  • Lastly, I wanted to test out BeautifulSoup4 :).

Issues, Bugs, Graphs?

Let me knwow about the issues at https://github.com/leosartaj/tvstats/issues. Feel free to add new graphs or improve.

Examples

All the datasets can be found here. Graphs were made using graph function in 'graph.py'.

Friends

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/friends.png

Game Of Thrones

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/gameOfThrones.png

Breaking Bad

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/breakingBad.png

How I Met Your Mother

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/himym.png

Prison Break

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/prisonBreak.png

Hannibal

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/hannibal.png

Suits

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/suits.png

Dexter

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/dexter.png

Arrow

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/arrow.png

Person Of Interest

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/personOfInterest.png

Homeland

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/homeland.png

House Of Cards

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/houseOfCards.png

How to Get Away With Murder

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/howToGetAwayWithMurder.png

Orange Is The New Black

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/orangeIsTheNewBlack.png

Shameless

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/shameless.png

Sons Of Anarchy

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/sonsOfAnarchy.png

Spartacus

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/spartacus.png

The Walking Dead

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/theWalkingDead.png

Vikings

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/vikings.png

Flash

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/flash.png

The Wire

https://raw.githubusercontent.com/leosartaj/tvstats/master/data/graphs/theWire.png

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.