{"id":21414914,"url":"https://github.com/alfastrek/textinsight-pro","last_synced_at":"2026-04-29T22:39:56.313Z","repository":{"id":244459329,"uuid":"815305820","full_name":"Alfastrek/TextInsight-Pro","owner":"Alfastrek","description":"Webscraper with Natural Language Processing","archived":false,"fork":false,"pushed_at":"2024-08-13T18:08:59.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T06:32:45.356Z","etag":null,"topics":["beautifulsoup","jupyter-notebook","nltk","numpy","pandas","python","webscraping"],"latest_commit_sha":null,"homepage":"https://colab.research.google.com/github/Alfastrek/WebScraper-with-Natural-Language-Processing/blob/main/WebScraper_With_NLP.ipynb","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alfastrek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-14T20:16:54.000Z","updated_at":"2024-08-13T18:11:59.000Z","dependencies_parsed_at":"2024-06-14T21:33:29.021Z","dependency_job_id":"4a5a8f1d-0257-4909-9ee0-aa1263d4f507","html_url":"https://github.com/Alfastrek/TextInsight-Pro","commit_stats":null,"previous_names":["alfastrek/webscraper-with-natural-language-processing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Alfastrek/TextInsight-Pro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alfastrek%2FTextInsight-Pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alfastrek%2FTextInsight-Pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alfastrek%2FTextInsight-Pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alfastrek%2FTextInsight-Pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alfastrek","download_url":"https://codeload.github.com/Alfastrek/TextInsight-Pro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alfastrek%2FTextInsight-Pro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32447292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beautifulsoup","jupyter-notebook","nltk","numpy","pandas","python","webscraping"],"created_at":"2024-11-22T18:34:31.926Z","updated_at":"2026-04-29T22:39:56.296Z","avatar_url":"https://github.com/Alfastrek.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📰 TextInsight Pro\n\nThis project provides a comprehensive solution for extracting and analyzing text data from web articles. It combines various techniques for text extraction, sentiment analysis, and readability evaluation, making it a powerful tool for data scientists and researchers.\n\n## Overview\n\nThe tool automates the extraction of article content from provided URLs, processes the text using stop words and sentiment dictionaries, and performs in-depth text analysis to generate various readability and sentiment metrics. The results are saved in CSV format for further analysis and review.\n\n## Features\n\n- **Text Extraction:** Extracts article content from web pages, handling cases where content is not available.\n- **Sentiment Analysis:** Analyzes text to determine positive and negative sentiment scores.\n- **Readability Metrics:** Calculates various readability indices and text complexity metrics.\n- **Modular Functions:** Provides reusable functions for text cleaning and analysis.\n\n## Libraries Used\n\n- **Pandas:** For reading and processing data from Excel files and saving results to CSV.\n- **Requests:** For making HTTP requests to fetch web page content.\n- **BeautifulSoup:** For parsing HTML and extracting article text.\n- **NLTK:** For natural language processing tasks, including tokenization and stop word removal.\n- **OS:** For file and directory management.\n\n## Functions Created\n\n- **`extract_article_text(url)`**: Extracts article text from a given URL using BeautifulSoup. Handles errors and cases where content is not found.\n- **`clean_text(text)`**: Cleans and tokenizes text, removing stop words and non-alphanumeric characters.\n- **`text_analysis(article_text)`**: Analyzes the cleaned text to compute sentiment scores, readability metrics, and text complexity. Returns a dictionary of results including:\n  - Positive Score\n  - Negative Score\n  - Polarity Score\n  - Subjectivity Score\n  - Average Sentence Length\n  - Percentage of Complex Words\n  - Fog Index\n  - Average Number of Words Per Sentence\n  - Complex Word Count\n  - Word Count\n  - Syllable Count Per Word\n  - Personal Pronouns\n  - Average Word Length\n\n## Usage\n\n1. **Prepare Your Data:**\n   - Upload your Excel file containing URLs to extract text from.\n   - Place stop words and sentiment dictionary files in the appropriate directories.\n\n2. **Run the Script:**\n   - Execute the provided script to perform text extraction and analysis. Results will be saved in the specified output directory.\n\n3. **Analyze Results:**\n   - Review the generated CSV files for detailed text analysis results.\n\n## Installation\n\nClone the repository and install the required libraries:\n\n```bash\ngit clone https://github.com/yourusername/your-repository.git\ncd your-repository\npip install -r requirements.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falfastrek%2Ftextinsight-pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falfastrek%2Ftextinsight-pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falfastrek%2Ftextinsight-pro/lists"}