this notebook shows how you can use large language models hosted in watsonx.ai to analyse instagram comments.
It uses the brand mercedes as an example even though I have no affiliation with them. The concept is the same for any brand.
Install the required Python packages using pip:
pip install -r requirements.txt
install and configure instaloader. Refer to their documentation as needed.
pip install instaloader
instaloader --comments mercedesbenz
Go to watsonx.ai and create an account. You will need to create a project and get the API key and URL.
write those credentials into an .env file with the following format:
GENAI_KEY=YOUR_KEY_HERE!!!
GENAI_API=https://bam-api.res.ibm.com/v1
Run from top to bottom and enjoy!