This project combines web scraping and AI text generation techniques to extract data required like from Movie Webiste movie titles, years, ratings, and other information like analysis using Puppeteer and then generating additional text with OpenAI's GPT-3.5 Turbo.
:- To run it seperately , get the code from the requests file (from the get request) as this is the demo verison of API.
:- Adjust the tokens as per needs as OPEN API if free version is being used then it may gie error for Run time limit.
This project demonstrates how to scrape information from a web page and process it with artificial intelligence. In this specific case, we're scraping movie data from Rotten Tomatoes and using GPT-3.5 Turbo to generate additional text based on the scraped content.
- Puppeteer: A Node.js library for controlling headless browsers.
- OpenAI GPT-3.5 Turbo: A powerful text generation model by OpenAI.
- JavaScript: The primary programming language used.
- Node.js: The runtime environment for executing JavaScript on the server.
- Other dependencies (list them if you have additional libraries)
To run this project locally, follow these steps:
- Clone the repository:
git clone https://github.com/yourusername/your-repo.git
- Install the necessary dependencies:
npm install
- Set up your OpenAI API key in the code: Replace
your-api-key
with your actual API key.
To use this project, follow these steps:
- Run the script:
node your-script.js
- The script will scrape movie data and generate additional text.
- Customize the prompt template in your code for different text generation tasks.
Here are some examples of how to use this project effectively:
- [Add examples of different use cases or scenarios where this project can be applied.]
Contributions are welcome! If you'd like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
- Make your changes and commit them with descriptive commit messages.
- Push your changes to your fork:
git push origin feature/your-feature-name
- Create a pull request to the main repository.