Skip to content
Home » Blog » Script: Add Domains to sav.com Cart

Script: Add Domains to sav.com Cart

If you use a lot of cheap TLD’s (for whatever reason 🤔) you most likely know sav.com. They offer by far the cheapest prices. BUT… their API… it sucks. No way to deposit funds and register through an API.

But it’s getting worse. You can’t even properly register through their website. You have to slowly check and add domains in chunks of 20. Can become really time consuming if you want to register a batch of 1000.

So I wrote a little script in bash script you can find below.

Grab your sav.com cookie after the login with the developer tools of your browser and replace the YOUR_SAV_COOKIE with it. Put the domains you want to register in some file (domains.txt for example), one per line and run the script like:

./add.sh domains.txt

Don’t forget to make it executable first:

chmod +x add.sh

I’ll share with you how to change the nameservers next week. But it seems you can do that through an API now too, which might be a more reliable way to do it.

Anyway, happy… whatever you are doing with the domains 🤡

The script:

I verified the script and it’s working by 3rd August 2023.

#!/bin/bash

if [ $# -eq 0 ]
then
    echo "usage: add.sh domains.txt"
    exit
fi


for LINE in `cat $1`
do
    curl \
    --cookie "YOUR_SAV_COOKIE" \
    -d "domain_name=$LINE&item=domain_registration" \
    "https://www.sav.com/shopping/add_to_cart_ajax"

    echo ""
done

Appendix

There was a discussion on Twitter/X lately how much of a programmer do you need to be to be a good SEO.

I would say you don’t need to know any programming to be a good SEO. You can rank websites without even knowing HTML. There are tools, you could always outsource.

But this small script is the perfect example why it makes perfect sense to know programming. And the more you know, the better. It takes you 10-15 minutes to get a script like this running but saves you hours.

You could even sell it if nobody is buying your SEO course…

Anyway, we will go much, much deeper down this rabbit hole together as our journey continues. Have to let it all out. Stay tuned.

4 thoughts on “Script: Add Domains to sav.com Cart”

  1. Hi sir,

    I really appreciate the content on your website. It’s almost like Eli Freud’s of bluehatseo.com, but way more relatable and understandable.

    In your opinion, what programming language should an SEO learn?

    I’m actually a freelance writer, but I have five niche sites I’m building by the side. I believe learning an seo-specific coding language can improve my results.

    Thanks and have a great weekend.

    Kind regards,
    Abdulrahman

Leave a Reply

Your email address will not be published. Required fields are marked *