Skip to content
Quentin Adt's Notes
The blog of Quentin Adt
SEO Development Digital Nomad About Me :)
Quentin Adt's Notes
The blog of Quentin Adt

Category: Python Scripts

Add column with domain name to CSV file with Python

February 10, 2021

A script to add a column containing only the domain name to an existing CSV file. It extract it from a column containing an URL. It works with .co.uk and other country code top-level domain. Just change “5” by the column containing the URL. Also don’t forget to adjust. Here is it setup for semi-colon for […]

Quentin Adt comment 0 Comments

tldextract: The Best Python Library for Domain Name Extraction

February 10, 2021

Why Use tldextract? When working with URLs, extracting key components like subdomains, main domains, and suffixes is essential. Whether you’re developing a spam filter, analyzing web traffic, or managing SEO projects, tldextract provides a reliable and ready-to-use solution. How Does tldextract Work? tldextract uses the Public Suffix List to accurately identify domains and their components. […]

Quentin Adt comment 0 Comments