Skip to main content

A package for analyzing content readability and virality potential.

Project description

PyViralContent


pyviralcontent is a Python package designed to assess the

readability of various types of content and predict their potential to

go viral. It employs multiple readability tests and translates numerical

scores into qualitative descriptors based on the Likert scale. This tool

is useful for optimizing content for clarity and engagement across

various domains.

Installation


pip install pyviralcontent

Usage


from pyviralcontent import ContentAnalyzer



# Define the type of content and the actual content

content_type = 'educational'  # options: 'scientific', 'blog', 'video', 'technical', 'fictional', 'legal', 'educational', 'news','advertising', 'social_media'.

text_content = "Your text content here."



# Create an instance of ContentAnalyzer

analyzer = ContentAnalyzer(text_content, content_type)



# Perform the analysis

df, viral_probability = analyzer.analyze()



# Print the results

print(f"Readability Scores Summary for {content_type.capitalize()} Content:")

print(df)

print(f"The probability of the content going viral is: {viral_probability * 100:.2f}%")

Features


  • Multiple readability tests for different content types.

  • Qualitative descriptors based on the Likert scale.

  • Estimation of content’s virality potential.

  • Supported content types include: scientific, blog, video, technical,

    fictional, legal, educational, news, advertising, social_media.

Contributing


Contributions to pyviralcontent are welcome! Please feel free to

submit issues, fork the repository, and create pull requests.

License


This project is licensed under the MIT License - see the LICENSE file

for details.

Contact


Bhaskar Tripathi - bhaskar.tripathi@gmail.com GitHub:

https://github.com/bhaskatripathi/pyviralcontent

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

pyviralcontent-0.1.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

pyviralcontent-0.1.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file pyviralcontent-0.1.2.tar.gz.

File metadata

  • Download URL: pyviralcontent-0.1.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for pyviralcontent-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9ea615db6ccd9ff4640ee5fbb2a425e09e3fa4d7f3aa9675a54fa06388239025
MD5 e4256672dbd7eacd9fef90917b32d498
BLAKE2b-256 e9b6e733230575f92988faaacc1e12031b27690dbb2366824efd561d4a36af9b

See more details on using hashes here.

File details

Details for the file pyviralcontent-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pyviralcontent-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for pyviralcontent-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6e9d776fc5dd86e456de08ece9e99e4505cddd9e28e0b527708b5d07f706b4f0
MD5 72efc11b64f7689586f77c25b6913b3c
BLAKE2b-256 6a0c674fa92ccca89094ee4c3cd76e583019f673e2eafe1844efa5b5b9e594e3

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