Skip to content

otto-torino/IMDB-Scraper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IMDB Scraper

GitHub contributors PRs Welcome

forthebadge made-with-python

Overview

This is a fork of the original IMDB Scraper repo.

This is a Scrapy project which can be used to crawl IMDB website to scrape movies' information and then store the data in json format or/and save them in an elasticsearch index.

Configuration

Search query

You can set the search queries in a json config file config/queries.json. You can get your own query from here: imdb.com/search/title.

ElasticSearch

You can store scraped info in elasticsearch, just enable the pipeline in the ITEM_PIPELINE dict in config/scrapy.py (enabled by default) and set the following env vars:

ES_HOST, ES_PORT, ES_USERNAME, ES_SECRET, ES_INDEX

JSON Output

If you enable the FEED_URI and FEED_FORMAT settings in config/scrapy.py, data will be stored in json file named movie.json located at IMDB-Scraper/imdb-scraper/data/movie.json.

Getting started

  1. Clone the repo and navigate into IMDB-Scraper folder.
$ git clone https://github.com/dojutsu-user/IMDB-Scraper.git
$ cd IMDB-Scraper/
  1. Create and activate a virtual environment.
(IMDB-Scraper) $ pipenv shell
  1. Install all dependencies.
(IMDB-Scraper) $ pipenv install
  1. Navigate into imdb_scraper folder.
(IMDB-Scraper) $ cd imdb_scraper/
  1. Start the crawler.
(IMDB-Scraper) $ scrapy crawl movie

Disclaimer

The project and the obtained dataset is intended only for educational purpose. It is completely open source and has no value intentions to commercialise complete or any part of the same. The developer is on no part the owner of any resources used and does not claim to hold the permissions to use the project.

About

Scrapy project for scraping data from IMDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%