anshulrgoyal / imdb-scrapper

This is small project it provide many good api for search ,scrapping ,trending
39 stars 32 forks source link

Adding support for tv series scrapping #4

Closed kartik2406 closed 6 years ago

kartik2406 commented 6 years ago

Regarding Issue: https://github.com/hack-throne/imdb-scrapper/issues/2

getFull gets info about series. The existing logic worked for the series with a few exceptions.

  1. Year was not getting picked up, fixed it.
  2. Changed runtime query, works for both movies and series (for series it's the episode runtime).
  3. Added a new function that will add total number of episodes, if it is a series.

Other fixes:

  1. .gitignore
  2. Rewrote tests file (logic is same though)
  3. Rewrote getPro() logic, now its completely dynamic :smile: