Commit Graph

173 Commits

Author SHA1 Message Date
ي
74c862faec Update textstaty.py
User-Friendly Interface: The Streamlit interface is intuitive, allowing users to easily input text and get readability scores.
Comprehensive Analysis: The tool covers a wide range of readability metrics, providing detailed insights into the text's readability.
Actionable Tips: Each readability score is accompanied by actionable tips, helping users improve their content based on the analysis.
Additional Insights: The inclusion of additional metrics like reading time, syllable count, and word count provides a thorough analysis of the text.
Suggested Improvements:
Error Handling:

Add error handling for cases where the text input might be empty or too short for certain readability metrics.
Code Modularization:

Refactor the code to encapsulate readability calculations and markdown generation into separate functions. This will make the code more modular and easier to maintain.
Performance Optimization:

Optimize the readability calculation by avoiding redundant calculations if the text hasn't changed.
Code Readability:

Add docstrings and comments to explain the purpose of functions and complex code blocks.
Ensure consistent formatting and adherence to PEP8 standards.
2025-01-18 08:34:32 +05:30
ي
ea5554a723 Update seo_structured_data.py
Code Improvements:
Error Handling:

Improve error messages to be more informative.
Log errors for debugging purposes.
Code Readability:

Add docstrings and comments to explain the purpose of functions and complex code blocks.
Modularization:

Split large functions into smaller, reusable functions.
Group related functions together.
Input Validation:

Ensure user inputs are validated to prevent errors later in the code.
User Experience Improvements:
User Feedback:

Provide immediate feedback on actions (e.g., loading spinners, success, and error messages).
Use placeholders and help text to guide users on what inputs are expected.
Interactive Elements:

Use more interactive elements like sliders, date pickers, and multi-selects to enhance the user interface.
2025-01-17 13:06:57 +05:30
ي
451164f5b2 Update optimize_images_for_upload.py
Add Type Hints: Improve code readability and help with static type checking by adding type hints.

Modular Logging Setup: Move the logging setup to a separate function for better modularity.

Error Handling Improvements: Add more specific error handling and informative logging.

Environment Variable Loading: Ensure environment variables are loaded only once and not inside functions.

Check for API Key Validity: Add a check to validate the Tinyfy API key before using it.

Optimize Image Saving: Use a temporary file to avoid saving directly to the filesystem.
2025-01-17 13:02:51 +05:30
ي
088975a70f Update opengraph_generator.py
Here are some improvements to the og_tag_generator function in opengraph_generator.py:

Refactor Code for Better Readability:

Group related operations together and add comments for better understanding.
Use helper functions to break down larger pieces of functionality into smaller, reusable code blocks.
Error Handling:

Improve error handling by providing more specific error messages and handling different types of errors separately.
User Experience Enhancements:

Add informative messages and examples to guide the user through the input process.
Provide feedback on the success or failure of the Open Graph tag generation.
2025-01-17 12:40:56 +05:30
ي
c9b22b3653 Update on_page_seo_analyzer.py
Additional Insights for Non-Technical Users
Content Quality Insights:

Readability Score: Use libraries like textstat to calculate a readability score (e.g., Flesch Reading Ease) for the webpage content.
Keywords Highlighting: Extract and highlight frequently used keywords in the content, helping users understand what topics are emphasized.
Duplicate Content Check: Flag if the meta description or titles are repeated multiple times in the page content.
SEO Health Checks:

Broken Links Detection: Identify broken internal or external links and recommend fixing them.
Image Optimization Tips:
Suggest reducing image sizes if the file sizes exceed a certain threshold.
Recommend modern formats like WebP for better performance.
Alt Text Suggestions: Provide actionable suggestions for missing or insufficient alt text, such as "Describe the image's purpose or key elements."
Social Media Enhancement:

Suggest best practices for Open Graph and Twitter tags, such as recommended tag content length or formats.
Generate suggested meta descriptions and Open Graph descriptions for improved click-through rates.
Accessibility Recommendations:

Heading Structure Audit: Check for skipped heading levels (e.g., h2 follows h4) and provide guidance on correcting them.
Contrast Ratio Check: Flag potential text-to-background contrast issues for visually impaired users (can use APIs like Lighthouse).
ARIA Tags: Check for the presence of ARIA (Accessible Rich Internet Applications) tags and recommend their addition if missing.
Performance Insights:

Lazy Loading Suggestions: Highlight images without loading="lazy" and recommend lazy loading to improve page load speed.
Critical CSS Suggestions: Advise inlining critical CSS for faster initial render.
Script Optimization: Highlight unminified or unused JavaScript and recommend optimization.
Custom Recommendations:

Call to Action (CTA) Suggestions: Analyze the text for actionable elements like buttons or links and recommend improving CTAs.
Internal Linking Suggestions: Suggest adding internal links for keywords or headings that lack links.
Schema Markup Expansion: Recommend additional schema types (e.g., FAQ, Product, Review) based on the page content.
Mobile Friendliness Enhancements:

Check for touch targets (buttons and links) being too small or too close together.
Flag pages without mobile-friendly navigation menus.
Enhancements to User Experience
Highlight Strengths and Weaknesses: Use color-coded sections to differentiate between well-optimized and underperforming areas.

Simplified Metrics:

Break down complex scores (like PageSpeed or SEO scores) into "Good," "Needs Improvement," and "Poor" categories.
Provide plain-English explanations for non-technical users.
Recommendations Section:

Provide step-by-step instructions or examples for fixing identified issues, such as "How to add a canonical tag" or "How to structure hreflang attributes."
Actionable Insights Dashboard: Summarize all findings in a visually appealing dashboard with prioritized to-do lists.

Export Reports: Allow users to export the analysis and recommendations in a PDF or CSV format for easier sharing and tracking.
2025-01-17 12:23:10 +05:30
ي
6bfc851a1c Update on_page_seo_analyzer.py
PEP 8 Compliance:

Ensure proper spacing around operators and after commas.
Group import statements by standard library, third-party, and local imports.
Error Handling:

Improve error messages to be more descriptive and helpful.
Code Structure:

Ensure consistent indentation and formatting.
Remove any unused imports or commented-out code.
Docstrings:

Ensure all functions have detailed docstrings explaining their purpose, arguments, and return values.
Optimization:

Reduce repeated calls to fetch_and_parse_html by reusing the soup object.
2025-01-17 11:16:51 +05:30
ي
b369e5f504 Update meta_desc_generator.py
Improve the readability, structure, and functionality of the code.
2025-01-17 10:49:36 +05:30
ي
d3eb02ef8e Update image_alt_text_generator.py
This version includes clear comments, detailed docstrings, and adheres to PEP 8 standards. It also uses environment variables for sensitive information and provides helpful tooltips for user inputs.
2025-01-17 10:44:34 +05:30
ي
9875cb8602 Optimize google_pagespeed_insights.py 2025-01-17 10:38:28 +05:30
ي
5722d852a4 Update content_title_generator.py 2025-01-17 10:04:40 +05:30
ي
99f1d15921 Update README.md 2025-01-17 09:56:26 +05:30
ي
6580653d80 Rename README.md to README 2025-01-17 09:49:44 +05:30
ي
cf03ff5f8c Documentation for AI Backlinging Tool 2025-01-17 09:48:55 +05:30
ي
d92873ffdb Update ai_backlinking.py
This script now includes the suggested improvements for:

Generating search queries
Finding backlink opportunities
Composing personalized emails
Sending emails using SMTP
Logging sent emails
Checking email responses
Sending follow-up emails
Handling multiple keywords
Main workflow integration
2025-01-17 09:44:03 +05:30
ي
a339aa6b29 Update README.md - Easier to get started with AI agents 2025-01-17 09:34:24 +05:30
ي
b41320ef10 Fix code scanning alert no. 12: Full server-side request forgery
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-01-14 18:07:55 +05:30
ي
b10e1af1b5 Fix code scanning alert no. 4: Uncontrolled data used in path expression
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-01-13 16:36:19 +05:30
ajaysi
e6f60feba5 YT to blog, bug fixes - WIP 2024-10-12 07:59:13 +05:30
ajaysi
16bcd86bb7 API keys setup improvements & housekeeping 2024-10-06 16:22:12 +05:30
ajaysi (aider)
7b219c8cea refactor: Combine API key checks into a single function 2024-10-06 14:36:02 +05:30
ajaysi
80e777d568 style: Remove trailing blank lines in api_key_manager.py 2024-10-06 14:35:57 +05:30
ajaysi (aider)
53dfaaa5da feat: Collect all missing API keys using a Streamlit form. 2024-10-06 13:56:06 +05:30
ajaysi
54aceb28a8 feat: Add API key management and LLM provider selection 2024-10-06 13:56:02 +05:30
ajaysi (aider)
b272f72395 fix: Move widget commands outside cached function to avoid unexpected behavior 2024-10-06 12:32:03 +05:30
ajaysi (aider)
316b2c5aac feat: implement API key management with .env file and user prompts 2024-10-06 12:30:47 +05:30
ajaysi (aider)
4cee9f0293 chore: Load environment variables on startup and set them after saving 2024-10-06 12:26:31 +05:30
ajaysi
9409e57d2f Performance optimizations, Improved SEO tools & error handling 2024-09-26 08:16:22 +05:30
ajaysi
516144a728 revert to 93075dc 2024-09-18 14:35:51 +05:30
ajaysi (aider)
a377032e02 fix: Resolve NameError by importing find_backlink_opportunities 2024-09-17 23:37:10 +05:30
ajaysi (aider)
00b9330c96 fix: Resolve import errors and install missing packages for AI backlinking tool. 2024-09-17 23:35:50 +05:30
ajaysi
97b60a66e6 feat: add backlinking UI streamlit app 2024-09-17 23:35:47 +05:30
ajaysi (aider)
ada8b37251 feat: implement AI LLM for composing personalized outreach emails based on insights and website data 2024-09-17 12:12:08 +05:30
ajaysi (aider)
3ce8e8d70a feat: implement personalized email composition for outreach based on website data and user proposals 2024-09-17 12:10:35 +05:30
ajaysi (aider)
bbee9e472f feat: integrate LLM functions to generate insights for scraped website content 2024-09-17 12:05:53 +05:30
ajaysi (aider)
17eaa26ec8 feat: enhance backlink opportunity data with website metadata and context 2024-09-17 12:01:52 +05:30
ajaysi (aider)
3e9d641ac5 feat: implement contact information extraction using Firecrawl's LLM Extract feature 2024-09-17 11:58:01 +05:30
ajaysi
8930f3d2b2 feat: add scrape_url import to ai_backlinking.py for enhanced functionality 2024-09-17 11:57:59 +05:30
ajaysi (aider)
cfb5145947 feat: integrate firecrawl_web_crawler for URL search functionality in search_for_urls function 2024-09-17 11:50:23 +05:30
ajaysi (aider)
602243de0e feat: implement search query generation and initial scraping structure for backlink opportunities 2024-09-17 11:48:28 +05:30
ajaysi
09572cb130 feat: add AI backlinking tool module 2024-09-17 11:48:26 +05:30
ajaysi (aider)
99acb9b4f1 fix: import missing modules to resolve undefined name errors in firecrawl_web_crawler.py 2024-09-17 11:27:44 +05:30
ajaysi (aider)
1078c969ca refactor: move initialize_client function to a separate file for better modularity 2024-09-17 11:27:35 +05:30
ajaysi (aider)
0787f7e807 feat: implement Google Trends analysis with user input and intelligent defaults in content_generators 2024-09-14 22:12:47 +05:30
ajaysi (aider)
3f61a7715c fix: import openai module to resolve undefined name error in alwrity_utils.py 2024-09-14 21:54:18 +05:30
ajaysi (aider)
fd604c4708 refactor: Optimize imports and improve code readability in alwrity_utils.py 2024-09-14 21:39:49 +05:30
ajaysi (aider)
d8616b1645 fix: remove invalid imports to resolve Streamlit app exceptions 2024-09-14 19:59:56 +05:30
ajaysi (aider)
2a28af1d02 feat: streamline web research process and integrate Google Trends results into Streamlit UI 2024-09-14 19:55:16 +05:30
ajaysi (aider)
12d66e8ff2 feat: optimize metric display by including search term and region in output messages 2024-09-14 19:40:58 +05:30
ajaysi (aider)
6900c028f5 feat: fetch and display all metrics from pytrends on CLI 2024-09-14 19:29:41 +05:30
ajaysi (aider)
e7acd194e4 feat: display all metrics from pytrends on CLI with explanations of their significance 2024-09-14 19:22:42 +05:30