<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: NAD14</title>
    <description>The latest articles on DEV Community by NAD14 (@nad14).</description>
    <link>https://dev.to/nad14</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F411191%2F8cafec4a-abe7-4e05-bf72-86ece4757172.png</url>
      <title>DEV Community: NAD14</title>
      <link>https://dev.to/nad14</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nad14"/>
    <language>en</language>
    <item>
      <title>How To Use Python For SEO Redirect Mapping</title>
      <dc:creator>NAD14</dc:creator>
      <pubDate>Sat, 16 May 2026 12:39:38 +0000</pubDate>
      <link>https://dev.to/nad14/how-to-use-python-for-seo-redirect-mapping-377h</link>
      <guid>https://dev.to/nad14/how-to-use-python-for-seo-redirect-mapping-377h</guid>
      <description>&lt;p&gt;Website migrations often lead to broken links and ranking losses if redirects are not mapped correctly. Python makes this process faster and more accurate by automating URL matching using page titles, headings and fuzzy matching.&lt;/p&gt;

&lt;p&gt;Instead of manually mapping hundreds or thousands of URLs, you can use Python to compare old and new site crawl data and generate redirect recommendations in minutes. This is especially useful during &lt;a href="https://nigeladamsdigital.co.uk/seo/" rel="noopener noreferrer"&gt;SEO&lt;/a&gt; website migrations, where preserving rankings, traffic and user experience is critical.&lt;/p&gt;

&lt;p&gt;Why Use Python for Redirect Mapping?&lt;br&gt;
Manual redirect mapping becomes difficult at scale and increases the risk of:&lt;/p&gt;

&lt;p&gt;Missed URLs&lt;br&gt;
Incorrect redirects&lt;br&gt;
Redirect chains&lt;br&gt;
Lost SEO equity&lt;br&gt;
404 errors after launch&lt;br&gt;
Python helps automate the process by:&lt;/p&gt;

&lt;p&gt;Comparing old and new URLs&lt;br&gt;
Matching pages using titles and headings&lt;br&gt;
Scoring similarity between pages&lt;br&gt;
Exporting redirect recommendations for review&lt;br&gt;
For larger projects, this sits naturally alongside broader technical SEO work, including crawl optimisation, indexation checks and post-launch monitoring.&lt;/p&gt;

&lt;p&gt;What You’ll Need&lt;br&gt;
The latest version of Python&lt;br&gt;
VS Code (or alternative code editor)&lt;br&gt;
Screaming Frog (or alternative website crawler)&lt;br&gt;
How To Install Python&lt;br&gt;
Download the latest version of Python from:&lt;/p&gt;

&lt;p&gt;Python.org&lt;/p&gt;

&lt;p&gt;During installation:&lt;/p&gt;

&lt;p&gt;Tick “Add Python to PATH”&lt;br&gt;
Click Install Now&lt;br&gt;
Once installed, restart your terminal or command prompt.&lt;/p&gt;

&lt;p&gt;Check that Python is installed correctly&lt;br&gt;
Open Terminal (Mac) or Command Prompt (Windows) and run:&lt;/p&gt;

&lt;p&gt;Bash&lt;br&gt;
python --version&lt;br&gt;
You should see something similar to:&lt;/p&gt;

&lt;p&gt;Terminal&lt;br&gt;
Python 3.12.3&lt;br&gt;
If that does not work on Windows, try:&lt;/p&gt;

&lt;p&gt;Bash&lt;br&gt;
py --version&lt;br&gt;
Create a Project Folder&lt;br&gt;
Create a new folder somewhere easy to access, for example:&lt;/p&gt;

&lt;p&gt;File&lt;br&gt;
seo-redirect-mapping&lt;br&gt;
This will be the folder you will place your Screaming Frog crawls in.&lt;/p&gt;

&lt;p&gt;Open the Folder in VS Code&lt;br&gt;
Download:&lt;/p&gt;

&lt;p&gt;Visual Studio Code&lt;/p&gt;

&lt;p&gt;Then:&lt;/p&gt;

&lt;p&gt;Open VS Code&lt;br&gt;
Click File → Open Folder&lt;br&gt;
Select your project folder&lt;br&gt;
Create a new Python file called:&lt;/p&gt;

&lt;p&gt;File&lt;br&gt;
redirect-mapping.py&lt;br&gt;
You are now ready to install the required libraries and run the script.&lt;/p&gt;

&lt;p&gt;Gather Website Crawls&lt;br&gt;
Before starting, gather crawl exports from both the old and new websites using a crawler such as Screaming Frog.&lt;/p&gt;

&lt;p&gt;Download:&lt;/p&gt;

&lt;p&gt;Screaming Frog&lt;/p&gt;

&lt;p&gt;Your exports should include:&lt;/p&gt;

&lt;p&gt;URL&lt;br&gt;
Page title&lt;br&gt;
H1&lt;br&gt;
H2&lt;br&gt;
Save both crawl exports as .xlsx files.&lt;/p&gt;

&lt;p&gt;Preliminary Steps&lt;br&gt;
Before running the steps below, open the integrated terminal in VS Code by clicking Terminal → New Terminal from the top menu.&lt;/p&gt;

&lt;p&gt;This opens a terminal window directly inside your project folder. The pip install command in Step 1 is entered here.&lt;/p&gt;

&lt;p&gt;For Steps 2 to 8, paste all of the code blocks into your redirect-mapping.py file in order, then run the script from the terminal using python redirect-mapping.py.&lt;/p&gt;

&lt;p&gt;Before installing any libraries, it is recommended to set up a virtual environment. This keeps your project dependencies isolated and avoids conflicts with other Python projects on your machine.&lt;/p&gt;

&lt;p&gt;Virtual environment — Mac&lt;br&gt;
Bash&lt;br&gt;
python -m venv venv&lt;br&gt;
source venv/bin/activate&lt;br&gt;
Virtual environment — Windows&lt;br&gt;
Bash&lt;br&gt;
python -m venv venv&lt;br&gt;
venv\Scripts\activate&lt;br&gt;
Once activated, you will see the environment name appear in your terminal. All libraries installed with pip will now be contained within this project folder. To deactivate the environment when you are finished, simply run deactivate as below:&lt;/p&gt;

&lt;p&gt;Terminal&lt;br&gt;
deactivate&lt;br&gt;
Make sure the virtual environment is active in your terminal before moving on to Step 1. You will see (venv) at the start of your terminal prompt when it is activated. It should look a little something like this:&lt;/p&gt;

&lt;p&gt;Terminal&lt;br&gt;
(venv) your-machine-name:seo-redirect-mapping yourname$&lt;br&gt;
Step-by-Step Guide&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Install Required Libraries&lt;br&gt;
Bash&lt;br&gt;
pip install pandas polyfuzz rapidfuzz openpyxl&lt;br&gt;
rapidfuzz is required separately for the matching model import to work correctly.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Import Libraries&lt;br&gt;
Python&lt;br&gt;
import pandas as pd&lt;br&gt;
from polyfuzz import PolyFuzz&lt;br&gt;
from polyfuzz.models import RapidFuzz&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Load Crawl Data&lt;br&gt;
Python&lt;br&gt;
old_urls = pd.read_excel("old_site_crawl.xlsx")&lt;br&gt;
new_urls = pd.read_excel("new_site_crawl.xlsx")&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;old_urls = old_urls.rename(columns={'Address': 'Old URL', 'Title 1': 'Old Title'})&lt;br&gt;
new_urls = new_urls.rename(columns={'Address': 'New URL', 'Title 1': 'New Title'})&lt;br&gt;
This assumes your Screaming Frog crawl exports use the default column names Address and Title 1, which are renamed in the code for clarity:&lt;/p&gt;

&lt;p&gt;Title 1 → renamed to Old Title / New Title&lt;br&gt;
Address → renamed to Old URL / New URL&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Prepare Title Data
Python
old_titles_df = old_urls[['Old URL', 'Old Title']].dropna()
new_titles_df = new_urls[['New URL', 'New Title']].dropna()&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;old_titles = old_titles_df['Old Title'].tolist()&lt;br&gt;
new_titles = new_titles_df['New Title'].tolist()&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run Fuzzy Matching
Python
matcher = PolyFuzz(RapidFuzz())
matcher.match(old_titles, new_titles)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;results = matcher.get_matches()["RapidFuzz"]&lt;br&gt;
The output includes:&lt;/p&gt;

&lt;p&gt;Original title&lt;br&gt;
Suggested matching title&lt;br&gt;
Similarity score&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Filter High-Confidence Matches&lt;br&gt;
Python&lt;br&gt;
filtered_results = results[results["Similarity"] &amp;gt;= 0.90]&lt;br&gt;
You can lower this threshold for larger or messier migrations, but anything below 0.80 should usually be reviewed manually.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Map Matches Back to URLs&lt;br&gt;
Python&lt;br&gt;
redirect_map = filtered_results.merge(&lt;br&gt;
old_urls[['Old URL', 'Old Title']],&lt;br&gt;
left_on='From',&lt;br&gt;
right_on='Old Title'&lt;br&gt;
)&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;redirect_map = redirect_map.merge(&lt;br&gt;
    new_urls[['New URL', 'New Title']],&lt;br&gt;
    left_on='To',&lt;br&gt;
    right_on='New Title'&lt;br&gt;
)&lt;/p&gt;

&lt;p&gt;final_redirects = redirect_map[&lt;br&gt;
    ['Old URL', 'New URL', 'Similarity']&lt;br&gt;
].copy()&lt;/p&gt;

&lt;p&gt;final_redirects.columns = [&lt;br&gt;
    'Old URL',&lt;br&gt;
    'New URL',&lt;br&gt;
    'Confidence Score'&lt;br&gt;
]&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Export the Redirect Map
Python
final_redirects.to_excel(
"redirect_mapping.xlsx",
index=False
)
You will now have an Excel file containing:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Old URL&lt;br&gt;
Suggested new URL&lt;br&gt;
Match confidence score&lt;br&gt;
Review lower-confidence matches manually before implementation.&lt;/p&gt;

&lt;p&gt;Tips for Better Redirect Matching&lt;br&gt;
To improve accuracy:&lt;/p&gt;

&lt;p&gt;Match using H1s if titles are inconsistent&lt;br&gt;
Remove duplicate titles before matching&lt;br&gt;
Exclude paginated or parameter URLs&lt;br&gt;
Manually override important pages&lt;br&gt;
Review all low-confidence matches&lt;br&gt;
For important migrations, it is also worth carrying out an SEO audit before launch so technical issues, content gaps and redirect risks are identified early.&lt;/p&gt;

&lt;p&gt;Final Thoughts&lt;br&gt;
Python dramatically simplifies redirect mapping during SEO migrations. By automating title and content matching, you can generate scalable redirect recommendations quickly while reducing manual errors.&lt;/p&gt;

&lt;p&gt;The workflow above gives you a reliable foundation that works well for most migrations and can easily be expanded for larger, more complex websites.&lt;/p&gt;

</description>
      <category>python</category>
      <category>seo</category>
    </item>
    <item>
      <title>A Guide To Javascript SEO</title>
      <dc:creator>NAD14</dc:creator>
      <pubDate>Wed, 17 Jun 2020 22:25:41 +0000</pubDate>
      <link>https://dev.to/nad14/a-guide-to-javascript-seo-1ik5</link>
      <guid>https://dev.to/nad14/a-guide-to-javascript-seo-1ik5</guid>
      <description>&lt;p&gt;As digital service professionals, we’ve all gotten well and truly used to our whole world changing in the blink of an eye.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Whether it’s adapting your website’s SEO in light of a new &lt;a href="https://www.searchenginejournal.com/google-algorithm-history/" rel="noopener noreferrer"&gt;Google Algorithm update&lt;/a&gt;, or having to learn a new programming language every year!&amp;nbsp;&lt;/p&gt;

&lt;p&gt;But the truth is, that’s why we’re all in this profession. Because we absolutely hate it when things are easy and run smoothly… right?! Well, most of the time we like a challenge don’t we.&lt;/p&gt;

&lt;p&gt;If you’re a web dev, SEO can often be challenging. Likewise, if you’re an SEO professional, development and programming can often seem overwhelming. But don’t worry, implementing javascript SEO isn’t about having to learn a completely new skill.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;It’s become pretty common practice for websites to use javascript on websites to improve user experience and add certain levels of interactivity. Some websites use js for pulling product data, content, menus etc. - the list goes on.&lt;/p&gt;

&lt;p&gt;As Google’s John Mueller states:&lt;/p&gt;

&lt;p&gt;"The web has moved from plain HTML - as an SEO you can embrace that. Learn from JS devs &amp;amp; share SEO knowledge with them. JS's not going away."&lt;/p&gt;

&lt;p&gt;So virtually every modern web developer will use javascript at some stage in a project.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;So, what’s javascript SEO all about then?&lt;/p&gt;

&lt;h2&gt;What Is Javascript SEO?&lt;/h2&gt;

&lt;p&gt;The process of SEO for javascript is a division of technical SEO, and it’s about ensuring that websites which are javascript-heavy can easily be crawled and indexed by search engines. In most cases, this is about load times and the overarching effect on SEO.&lt;/p&gt;

&lt;p&gt;Does this mean that javascript is bad for SEO? Absolutely not!&lt;/p&gt;

&lt;p&gt;Just remember that it isn’t perfect, certainly from the eyes of an SEO pro - It can’t be parsed progressively, unlike HTML and CSS, and it can be heavy on page load and therefore performance. In many cases, you may be trading performance for functionality…&lt;/p&gt;

&lt;p&gt;How Google Crawls Javascript On Websites&lt;/p&gt;

&lt;p&gt;The truth is that it can never be guaranteed for Google to index your javascript. (It’s also worth noting that no one can guarantee google will index html for that matter either… but, one thing at a time!)&lt;/p&gt;

&lt;p&gt;However, Google can index javascript on some websites a lot better than others. So what’s the difference? How can you ensure that your website stays ahead of your competitors?&lt;/p&gt;

&lt;p&gt;The reason that Google can find indexing javascript a little harder than say HTML / CSS is that Googlebot has to use the Google Web Rendering Service to parse, compile and execute JavaScript. The web rendering service then has to fetch data from external APIs.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;It’s a little like arriving at the supermarket, seeing the chocolate bar you want on the shelf, but before you can take it to the tills - a shop assistant has to go and fetch the barcode from their warehouse which is the other side of town… It’s just a long-winded process!&lt;/p&gt;

&lt;p&gt;Of course, with slower loading times you risk high bounce rates and damaging user experience. This leads to bad news for your website and business, whether you have a small local business website or you're focussing on eCommerce SEO as an online retailer!&lt;/p&gt;

&lt;h2&gt;Checking Your Javascript SEO&lt;/h2&gt;

&lt;p&gt;There are 3 main factors to focus on with javascript SEO:&lt;/p&gt;

&lt;p&gt;Crawlability - Allowing Google to crawl your website using a logical structure to find all of your focus information.&lt;/p&gt;

&lt;p&gt;Renderability - Google should be able to render your website&lt;br&gt;
Crawl budget - How much time it will take for Google to crawl and render your website.&lt;/p&gt;

&lt;p&gt;Rendering JavaScript can affect your crawl budget and delay Google’s indexing of your pages.&amp;nbsp; So it’s important to follow these steps:&lt;/p&gt;

&lt;p&gt;Check If Google Can Render Your Site&lt;/p&gt;

&lt;p&gt;It’s just not enough to open a browser and see if your website loads…&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Use &lt;a href="https://support.google.com/webmasters/answer/9012289?hl=en" rel="noopener noreferrer"&gt;Google’s URL Inspection Tool&lt;/a&gt;, which is available through Search Console. It allows you to see a screenshot of how exactly Googlebot would render the JavaScript content on your page. So it’s incredibly useful.&lt;/p&gt;

&lt;p&gt;When you view the screenshot, you’ll need to decide whether Google can see the crucial elements on your page, and if the main content is loaded prominently.&lt;/p&gt;

&lt;p&gt;If you want to dive deeper, you can also take a look at the HTML tab within the generated report to see the DOM rendered code.&lt;/p&gt;

&lt;p&gt;Check if Your Content is Indexed&lt;/p&gt;

&lt;p&gt;The two best ways to check if your website is being indexed by Google are; using the ‘site:examplewebsite.com’ search command, and checking Google Search Console.&lt;/p&gt;

&lt;p&gt;Unfortunately, a lot of the time, javascript SEO problems are self-induced - which is why it’s important to check on your website from the outset! If your website struggles with a problem you should find out why.&lt;/p&gt;

&lt;p&gt;There’s multiple reasons why your site could be facing javascript SEO issues:&lt;/p&gt;

&lt;p&gt;Timeouts - How long is Googlebot and your users waiting for your content to fully load?&lt;br&gt;
Accessibility - Is your content accessible via your sitemap file?&lt;/p&gt;

&lt;p&gt;Rendering - Can Google definitely render your scripts? Use the URL Inspection Tool previously mentioned.&lt;/p&gt;

&lt;h2&gt;Arrange A Technical SEO Audit&lt;/h2&gt;

&lt;p&gt;Whether you’re new to SEO or a seasoned vet - it can always help to get a second pair of eyes to look over your website from a technical SEO standpoint.&lt;/p&gt;

&lt;p&gt;Nigel Adams is an experienced SEO freelancer based in the UK. Nigel runs a results-driven &lt;a href="https://nigeladamsdigital.co.uk/seo/bedford/" rel="noopener noreferrer"&gt;Bedford SEO Agency&lt;/a&gt;, with a small team. If you’re interested in a Technical SEO Audit for your website, he’s your go to guy!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>wordpress</category>
    </item>
  </channel>
</rss>
