Skip to main content

A Python package for sentiment analysis

Project description

sentianaylib (sentimental analysis library)

Overview

This Python package, developed by Chameleonlabs.org, performs sentiment analysis on a web page based on a specified keyword.

Developer Credits

This package was developed by: Riyesh Poolanchalil (@riyeshp) Rahul Poolanchalil (@rahulp_1986)

Installation

You can install the package via pip:

Usage

To use the package, import the sentianaylib class from the package and create an instance with the required driver. Then, call the dataprocessor() method with the URL,keyword and current_directory parameters.

from sentianaylib import sentianaylib

current_directory = os.path.dirname(os.path.abspath(__file__))
# Initialize sentianalib with the appropriate driver
sentianaylib_instance = sentianaylib(driver)

# Perform sentiment analysis on a webpage
url = 'https://example.com'
keyword = 'air pollution'
sentianaylib_instance.dataprocessor(url, keyword, current_directory)

Parameters

url: The URL of the webpage to analyze. keyword: The keyword to use for sentiment analysis. current_directory: The location of main file where other related files can generated.

Dependencies

This package relies on the following external libraries:

Beautiful Soup: For parsing HTML content. TextBlob: For sentiment analysis. Selenium: For automated web browsing.

License

This package is licensed under the MIT License. See the LICENSE file for details.

Issues

If you encounter any issues or have suggestions for improvement, please open an issue.

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

sentianaylib-1.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

sentianaylib-1.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file sentianaylib-1.0.1.tar.gz.

File metadata

  • Download URL: sentianaylib-1.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.10

File hashes

Hashes for sentianaylib-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d39dae6c780cbcbdb3f618da04e6ab0b06f666a20769dde16235f1a92cb1e317
MD5 7cd93c5121f06a7cdf6556e6b5f5c16e
BLAKE2b-256 4c908d3469e3d0d44e1bff83a2c2eefdb28b9946a7bd16f4e90aca7ac6caf190

See more details on using hashes here.

File details

Details for the file sentianaylib-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: sentianaylib-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.10

File hashes

Hashes for sentianaylib-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 56e6a1552dba98b40519c4afaf6ca0353de5cf126fbf90d80f342822532b6eec
MD5 fc567466d5a106e64ef1be6046b17f00
BLAKE2b-256 67e7bf8ea76dba57f80d8814cbbe2de0774291d0310847ca624390d7bdf84927

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