Skip to main content

A python library for negative google review analysis.

Project description

A python library for negative google review analysis.

We recommend using a Colab T4 GPU for faster results.

Main dependencies

  • python>=3.12
  • 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google_review_analysis-0.0.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

google_review_analysis-0.0.1-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file google_review_analysis-0.0.1.tar.gz.

File metadata

  • Download URL: google_review_analysis-0.0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for google_review_analysis-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3b0b52c46013c60de9a6a5d7357f73fd5565ed99c68c428ea59e263f5c49f10b
MD5 35d4bc8156610f810917c2584974966f
BLAKE2b-256 315ea8a97530a69c9e840b42d90530d8aa456c13d98c1f0d29c50061a1e14ae7

See more details on using hashes here.

File details

Details for the file google_review_analysis-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for google_review_analysis-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49251127f7bdf2f564c263fb24a2ccdcf0d1a56080aa0343b871e3f3f2c81911
MD5 ef5a727f36f9e7348c9872d7abcca60d
BLAKE2b-256 e7c33b7e1d6d004b102ca39cb103a23b955e6da38aac5e0734d1f1be82f4b6b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page