Google Search results scraper combined with NLP-based sentiment analysis using the Piloterr Google Search API.
This project focuses on:
- Extracting real-time search results from Google
- Calculating sentiment scores (negative, neutral, positive, compound) for each snippet
- Preparing structured data for further visualization or reporting (visualization is not included in this repo)
git clone https://github.com/harivonyR/Sentiment_analysis_using_Google_search/
cd Sentiment_analysis_using_Google_searchEdit the credentials file:
cd credential.example
nano credential.pyReplace the placeholder with your Piloterr API Key.
You can request a key from Piloterr.com.
Core (development):
pip install pandas requests osNLP Models:
pip install scipy transformers torchpython main.pyThis will:
- Scrape Google search results for your chosen keyword
- Calculate sentiment scores for each row in the dataset
- Return the results as dataframe for your own analysis and visualization
💡 *Explore the full analysis with data visualisation on Google Colab : Sentiment analysis using Piloterr Google Search API and NLP.