Commit Graph

257 Commits

Author SHA1 Message Date
ي
70b272fd84 Update content_planning_agents_alwrity_crew.py 2025-01-29 23:10:15 +05:30
ي
e758ab5695 Update on_page_seo_analyzer.py 2025-01-29 23:09:47 +05:30
ي
9782640923 Update deepseek text generation module 2025-01-28 12:18:53 +05:30
ي
fca5b269cb Update alwrity.py for DeepSeek AI model 2025-01-27 20:18:20 +05:30
ي
6a76570610 Support DeepSeek AI model for text gen 2025-01-27 19:45:04 +05:30
ي
960b1394b4 Include deepseek AI model for content generation 2025-01-27 19:40:31 +05:30
ي
bd39becb57 Update deepseek_text_gen
Changes Made:
Configured logging similar to openai_text_gen.py.
Added retry mechanism using tenacity similar to both openai_text_gen.py and gemini_pro_text.py.
Adapted the API call to use DeepSeek's reasoning.create method.
Handled streaming of responses and error logging.
2025-01-27 19:32:53 +05:30
ي
86a38aec85 Create deepseek_text_gen.py 2025-01-27 17:58:29 +05:30
ي
076a597d7a Update finance_data_researcher.py 2025-01-26 13:48:52 +05:30
ي
b58e9f519e Update firecrawl web crawler 2025-01-24 16:31:23 +05:30
ي
4b883408dd Update README.md 2025-01-24 16:17:38 +05:30
ي
348f84a99b Rename README to README.md 2025-01-24 16:05:54 +05:30
ي
9a819b2267 Update and rename README.md to README 2025-01-24 16:05:07 +05:30
ي
3653bd4e80 Update arxiv_schlorly_research.py
Function Definitions:
fetch_arxiv_data: Fetches arXiv data based on a query.
create_dataframe: Creates a DataFrame from the provided data.
get_arxiv_main_content: Returns the main content of an arXiv paper.
download_image: Downloads an image from a URL.
scrape_images_from_arxiv: Scrapes images from an arXiv page.
arxiv_bibtex: Generates the BibTeX entry for an arXiv paper.
extract_arxiv_ids_from_line: Extracts arXiv IDs from a given line of text.
read_written_ids: Reads already written arXiv IDs from a file.
append_id_to_file: Appends a single arXiv ID to a file.
Step 2: Suggest Code Improvements
Code Duplication:
Combine Similar Functions: Functions such as fetch_arxiv_data and create_dataframe can be combined or refactored to reduce redundancy.
Reuse Code: Ensure common functionality is abstracted into reusable functions.
Performance and Optimization:
Optimize API Calls: Ensure the arXiv API calls are optimized and handle rate limits.
Efficient Data Handling: Use more efficient data handling techniques, such as batch processing for large datasets.
Coding Standards and Best Practices:
Add Docstrings: Ensure all functions have detailed docstrings explaining their purpose, arguments, and return values.
Error Handling: Improve error handling to provide more informative error messages and handle different types of errors separately.
Logging: Use a consistent logging strategy to log important events and errors.
Code Structure: Group related functions into classes or modules for better organization and maintainability.
PEP 8 Compliance: Ensure the code follows PEP 8 standards for Python code style.
2025-01-24 15:52:06 +05:30
ي
f75375eaaa Delete lib/ai_web_researcher/__pycache__ directory 2025-01-18 09:35:29 +05:30
ي
2f37626e32 Update sitemap_analysis.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.
Use consistent formatting and naming conventions.
Modularization:

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

Use caching where possible to reduce redundant operations.
Optimize data processing steps for better performance.
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-18 08:35:09 +05:30
ي
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
ي
1d0a3db873 Add docstrings and comments to improve readability and maintainability of sidebar_configuration function
Add docstrings and comments to improve readability and maintainability of sidebar_configuration function
2025-01-15 20:45:06 +05:30
ي
a6cbfafa16 Debacles with AI coding, Reverting breaking changes. 2025-01-15 20:03:00 +05:30
ي
44e5f7dc1f Refactor, modular code & comments for maintainability
Modularize Code: Break down the large sidebar_configuration function into smaller, more manageable functions to improve readability and maintainability.

Error Handling: Implement error handling for critical operations, such as reading and writing files, to ensure the application handles exceptions gracefully.

Docstrings and Comments: Add docstrings and comments to functions and critical code sections to improve code documentation and readability.

Code Consistency: Ensure consistent use of naming conventions and code formatting.
2025-01-15 19:40:25 +05:30
ي
4374749fbc Refactored, reduced duplicate code, WIP 2025-01-15 18:16:24 +05:30
ي
b06a8e1234 Update README.md 2025-01-15 17:27:10 +05:30
ي
19f8d43729 Update README.md 2025-01-15 16:01:41 +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
ي
ed493a1951 Update README.md 2025-01-09 10:58:40 +05:30
ajaysi
77b9cea226 README changes 2024-11-07 12:25:16 +05:30
ajaysi
1471a3ec9b Merge branch 'main' of https://github.com/AJaySi/AI-Writer 2024-10-12 08:00:44 +05:30
ajaysi
e6f60feba5 YT to blog, bug fixes - WIP 2024-10-12 07:59:13 +05:30
Mason Dierkes
c7f3d714a8 Update requirements.txt 2024-10-10 07:33:51 +05:30
ajaysi
16bcd86bb7 API keys setup improvements & housekeeping 2024-10-06 16:22:12 +05:30
ajaysi (aider)
adc7f157ea refactor: Consolidate API key checks into single function 2024-10-06 14:36:39 +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
a710e33f6d chore: Remove unnecessary blank line in alwrity.py 2024-10-06 14:08:03 +05:30
ajaysi (aider)
58f73bed91 fix: Allow app to run without API keys, prompting for input instead of stopping. 2024-10-06 14:04:03 +05:30