This project contains five Python scripts designed to automate common SEO tasks, such as generating redirect maps, creating meta descriptions in bulk, analyzing keywords with N-grams, clustering keywords into topics, and matching keywords to predefined topics. This toolkit streamlines your SEO workflow, saves time, and improves efficiency.
SEO tasks can be tedious, repetitive, and time-consuming. This project provides five Python scripts to automate key SEO activities, such as redirect maps, bulk meta description generation, keyword analysis, and keyword clustering. Each script is designed to handle large data sets efficiently by utilizing multi-core processors and Python libraries.
Automate Redirect Map: Automatically create redirect maps by comparing old and new URLs. Bulk Meta Descriptions Generator: Generate meta descriptions for thousands of pages in bulk. Keyword Analysis with N-Grams: Analyze keyword lists with unigrams, bigrams, and trigrams. Group Keywords into Topic Clusters: Automatically group keywords into topic clusters. Match Keywords to Predefined Topics: Match keywords to predefined topics for content categorization.
Prerequisites Python 3.7+ installed on your system. Required Python packages listed in requirements.txt.
git clone [repo_url] cd SEO_Automation_Project
pip install -r requirements.txt
You can run any of the scripts through main.py by specifying the desired task with the --task argument.
python main.py --task redirect
redirect: Automates the creation of a redirect map. meta: Bulk generates meta descriptions for URLs. ngrams: Analyzes keywords using N-Grams. clusters: Clusters keywords into topic groups. match: Matches keywords to predefined topics.
Automatically generates redirect maps by matching old and new URLs using content similarity.
python main.py --task redirect
data/source_urls.txt data/target_urls.txt
results/redirect_map.csv
Generates meta descriptions for multiple URLs in bulk using the Sumy LSA summarizer.
python main.py --task meta
data/urls.txt
results/meta_descriptions.csv
Analyzes keywords and generates unigrams, bigrams, and trigrams to help identify common patterns in keyword strategies.
python main.py --task ngrams
data/keywords.txt
results/ngrams_results.txt
Groups keywords into topic clusters using TF-IDF and Affinity Propagation, helping organize keywords by topics for SEO.
python main.py --task clusters Input:
data/keywords.txt Output:
results/clusters.csv
Matches a list of keywords to predefined topics using Spacy NLP, automating the categorization of keywords based on topic relevance.
python main.py --task match
data/keywords.txt data/topics.txt
results/matched_keywords.csv
If you'd like to contribute to this project, feel free to submit a pull request or suggest improvements by opening an issue.
git checkout -b feature/YourFeature
git commit -m 'Add YourFeature'
git push origin feature/YourFeature Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.