Skip to content

Instantly share code, notes, and snippets.

View rbatista191's full-sized avatar

Ricardo Batista rbatista191

View GitHub Profile
@rbatista191
rbatista191 / fit_metatags_into_seo_practices.py
Last active June 27, 2024 10:01
SEO Meta Tag Optimizer for Markdown Files: This script optimizes SEO meta tags (title and description) for Markdown files in a specific folder using OpenAI's GPT-4 model. It processes Markdown files and updates their frontmatter with optimized title and description.
"""
SEO Meta Tag Optimizer for Markdown Files in a Specific Folder
This script optimizes SEO meta tags (title and description) for Markdown files
in a specific folder using OpenAI's GPT-4 model. It processes Markdown files
and updates their frontmatter with optimized title and description.
Features:
- Processes Markdown files in a specified folder
- Extracts and parses YAML frontmatter
@rbatista191
rbatista191 / update_markdown_redirect_urls.py
Last active June 24, 2024 21:58
Markdown URL Redirect Updater: This script updates URLs in Markdown files that lead to 301 redirects. It traverses through a specified directory (and its subdirectories), finds all .md files, and updates any URLs that result in a 301 redirect to their final destination.
"""
Markdown URL Redirect Updater
This script updates URLs in Markdown files that lead to 301 redirects. It traverses
through a specified directory (and its subdirectories), finds all .md files, and
updates any URLs that result in a 301 redirect to their final destination.
Usage:
1. Ensure you have the 'requests' library installed: pip install requests
2. Place this script in a sibling directory to the 'content' folder containing your blog posts