/imdb-scraper

A java class to get IMDb information of movies, series, etc

Primary LanguageJavaApache License 2.0Apache-2.0

IMDb Scraper

JitPack Apache 2.0

This library lets you get IMDb information from movies, series, etc without an API key.

Installation

Gradle

Add in your file build.gradle at the end of repositories:

allprojects {
	repositories {
		// ...
		maven { url "https://jitpack.io" }
	}
}

Then add the dependency:

dependencies {
	compile 'com.github.vegidio:imdb-scraper:1.0.2'
}

Maven

Add in your file pom.xml at the end of repositories:

<repositories>
	<repository>
		<id>jitpack.io</id>
		<url>https://jitpack.io</url>
	</repository>
</repositories>

Then add the dependency:

<dependency>
	<groupId>com.github.vegidio</groupId>
	<artifactId>imdb-scraper</artifactId>
	<version>1.0.2</version>
</dependency>

Usage

Scraper scraper = new Scraper();

// Get a show by its IMDb id; in this case, The Simpsons
scraper.findById("tt0096697");

// Check if the show was found
if(scraper.hasFound())
{
	System.out.println("Show id....: " + scraper.getId());
	System.out.println("Show url...: " + scraper.getUrl());
	System.out.println("Title/Name.: " + scraper.getTitle());
	System.out.println("Genre......: " + scraper.getGenre());
	System.out.println("Description: " + scraper.getDescription());
	// ...
}

More examples can be found in the folder src/test/java/com/hryun/imdb/.

License

imdb-scraper is released under the Apache License. See LICENSE for details.

Author

Vinicius Egidio (vinicius.io)