This project is designed to fetch the top 250
movies from IMDb
, search for their corresponding Wikipedia pages, extract the plot and poster image, and finally upload the information to a Blogger account using the Blogger API
.
Website : https://movieplotzz.blogspot.com/
These instructions will help you get started with the project.
Before getting started with the project, you will need the following:
- A Google account to access the Blogger API
- A valid API key, client credentials to access the Blogger API
- A Python environment with the following packages installed:
- requests
- bs4 (BeautifulSoup)
- wikipedia
- IMDbPY(Cinemagoer)
- Clone repo
git clone https://github.com/pj8912/movie-blog-automation.git
- Install
requirements.txt
pip install -r requirements.txt
- Create a project in the Google API Console.
- Enable the Blogger API for your project.
- Create an API key for your project.
- Create OAuth 2.0 Client ID(clientid, client credentials)
- Add
CLIENT_ID
andCLIENT_SECRET
to.env
file - Go to
code-token/
runget_code_token.py
to generateaccess token
that will be used to uploadpost
to blogger. - Add generated
ACCESS_TOKEN
to .env file.
- Run the main.py file to start the project.
python main.py
- The project will fetch the top 250 movies from IMDb, search for their corresponding Wikipedia pages, extract the plot and poster image, and finally upload the information to a Blogger account using the Blogger API.
This project is a useful tool for anyone looking to extract and upload movie information from IMDb and Wikipedia to a Blogger account. With a few simple steps, you can easily fetch the top 250 movies from IMDb, extract their plots and poster images, and upload them to your Blogger account.