Skip to content

A custom-web-scraping program to provide essential information in a table for a movie search

Notifications You must be signed in to change notification settings

Elton-Lin/Movie_Info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Movie_Info

Utilizing google custom search engine to create a narrower movie search results and its api client to scrape the results for essential information for a movie search - poster, rating, reviews, wikipedia page, and trailer, and display them with a table.

To be improved upon in the future: 1. Search an array of movies and display rows of results. 2. Display part of the content instead of only the links in the table, if possible.

Any kind of advice is very welcome - email me.

Setup

  1. Install Jupyter Notebook (with Anaconda) or use the online version: https://jupyter.org/index.html
  2. register a Google JSON API Key: https://developers.google.com/custom-search/v1/overview (including pricing for over 100 search/day)
  3. Clone or copy the lines in movie_info.ipynb and run the main program, sample code is provided on the bottom. Note: In the code, replace 1. local path in convert_image() 2. api_key 3. Movie title, accordingly

Libraries

Make sure to install the necessary libraries, e.g.

$ pip install --upgrade google-api-python-client

Apply the same command for other libraries that are used in movie_info.ipynb

References

Google Custom Search Engine(CSE):

Google API Python Client:

Embed Image Into Table:

Pandas Library (For The Table):

About

A custom-web-scraping program to provide essential information in a table for a movie search

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published