Had a client ask for a backlink audit report. Instead of manually checking each link, I built a script that checks if a backlink page is still live and if the link is still present. Here's a simplified version:
python
import requests
from bs4 import BeautifulSoup
def check_backlink(url, target_domain):
try:
response = requests.get(url, timeout=10)
soup = BeautifulSoup(response.text, 'html.parser')
links = [a['href'] for a in soup.find_all('a', href=True)]
return any(target_domain in link for link in links)
except:
return False
It flagged several broken links and missing backlinks. For larger audits, I've been using a tool that automates this process. What's your method for backlink monitoring?Visit: https://serpspur.com/













