Skip to main content

A python library for negative google review analysis.

We recommend using a Colab T4 GPU for faster results.

Main dependencies

  • python>=3.11
  • tiktoken==0.9.0
  • sentence-transformers==3.4.1
  • transformers==4.49.0
  • openai==1.66.3
  • selenium==4.29.0
  • matplotlib==3.10.1

Example & Usage

from review_analysis import main

# Your API token which can be found here (https://github.com/marketplace/models/azure-openai/gpt-4o)
api_token = "YOUR_API_TOKEN"
url="https://www.google.com/maps/place/Tartine+Manufactory/@37.7641381,-122.4072274,15.17z/data=!4m14!1m7!3m6!1s0x14a1bd1aea890b7b:0x678031344322f3af!2sKalamaki+Bar!8m2!3d37.9654755!4d23.7257512!16s%2Fg%2F11b6xk37_y!3m5!1s0x808f7e308f2ed1bb:0x88d7d35712aa2ba3!8m2!3d37.7618278!4d-122.4118972!16s%2Fg%2F11cjkq6mjc?entry=ttu&g_ep=EgoyMDI1MDMxMS4wIKXMDSoASAFQAw%3D%3D"
sentiment_model_name = "cardiffnlp/twitter-roberta-base-sentiment-latest" # OR "cardiffnlp/twitter-xlm-roberta-base-sentiment"
download_destination_folder = "src/to/your/download/folder"

main.sentiment_review_analysis(api_token, url, sentiment_model_name, download_destination_folder)

Parameters

  • api_token: Your API token from here. (Required)
  • url: The url of the place taken from google maps. (Required)
  • sentiment_model_name: The model to perform the analysis (Note: The "twitter-xlm-roberta-base-sentiment" model takes longer but returns better results) (Required)

Licence

This library is licensed under the CC-BY-NC 4.0 license.

Release files for google-review-analysis 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for google-review-analysis 0.0.5
File Size Uploaded
google_review_analysis-0.0.5.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for google-review-analysis 0.0.5
File Interpreter ABI Platform
google_review_analysis-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / google_review_analysis-0.0.5.tar.gz

Download URL google_review_analysis-0.0.5.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
724a5708da906abe7a17d514beb83e3cfd44c420d7d6a61588c5a0a6cdd2e1fe
BLAKE2b-256 checksum
How to use checksums
213595cde4dc74b5195a0b7f38fbf46d87e8353a1ca40f2667094e221f9fa8a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.1

Release files / google_review_analysis-0.0.5-py3-none-any.whl

Download URL google_review_analysis-0.0.5-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ac55de663e571ffae705bfdde133361322ea0d2480a3acc8b62ccd66c3b1544
BLAKE2b-256 checksum
How to use checksums
8e49e0d1ea13e5e515ad8615811750d1ffd2e9387143739c70829a0aa42b7123
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.1

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page