Giter Site home page Giter Site logo

imdb-poster-scraper's Introduction

imdb-poster-scraper

A movie poster downloader that finds and scrapes posters from IMDB. Nothing more, nothing less.

Before you start to go nuts with this

Please note that IMDB will block your IP for a certain time if you overdo it. Please use with care and be respectful with their data and resources. Thanks.

How to run without building

$ go run main.go [options]

How to build

$ go build -o imdb-poster-scraper main.go

Command-line options

  • --m IMDB_MOVIE_TITLE_ID_OR_URL (Specify the movie title ID or the URL of the movie poster you want to be downloaded)
  • --dir DIRECTORY (Specify the target directory where the downloaded posters should be saved to)
  • --delay NUMBER (Wait for NUMBER of milliseconds between requests)
  • --all (Download all poster resolutions, not just the default one)
  • --collect (Collect poster URLs only, don't download anything)
  • --list (List movie title and ID)
  • --shhh (Stealth mode, don't make a sound)

Examples

# Download posters by specifying movie title IDs
$ go run main.go -m tt2861424 -m tt0149460
# Mix movie title IDs and URLs
$ go run main.go -m tt2861424 -m www.imdb.com/title/tt0149460/ -m https://www.imdb.com/title/tt0245429/
# Specify a target directory where the posters should be saved to
$ go run main.go --dir ./posters -m tt2861424 -m tt0149460 -m tt0245429
# Download posters in all available resolutions
$ go run main.go --dir ./posters -m tt2861424 -m tt0149460 -m tt0245429 --all
# Wait for 1 second between downloads
$ go run main.go --dir ./posters -m tt2861424 -m tt0149460 -m tt0245429 --all --delay 1000
# Collect all poster URLs but do not download. This probably is not really helpful, so just ignore it.
$ go run main.go --dir ./posters -m tt2861424 -m tt0149460 -m tt0245429 --all --collect
# List movie title IDs and movie titles (just for fun)
$ go run main.go --dir ./posters -m tt2861424 -m tt0149460 -m tt0245429 --list
# Be stealthy, don't say a word, don't make sound.
$ go run main.go --dir ./posters -m tt2861424 -m tt0149460 -m tt0245429 --shhh

imdb-poster-scraper's People

Contributors

grumpypixel avatar

Watchers

 avatar  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.