Skip to content

internetyev/seo-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Internetyev's SEO Python Scripts

Hi! My name is Andriy Terentyev, I am SEO consultant focusing on online travel. I am SEO Strategy Advisor at Kyiv Independent (https://kyivindependent.com).

Previously I worked as SEO Lead at Kiwi.com, and COO of Hotelscan.com.

Here is my collection of SEO scripts on python that I find useful. Some of these scripts are written by me, sometimes with a bit of help from AI.

Fetch number of indexed pages from a list of domains

fetch-n-of-results.py

The script:

  • takes a list of domains from a CSV file named [domains.csv][n-of-results/domains.csv],
  • uses ScraperAPI.com to scrape the number of indexed pages from Google,
  • saves the result in [n-of-results/n-of-results.csv]

Before you start:

  • register at ScraperAPI.com -- registration is free, and you get 5000 free API credits per month,
  • rename renameto-config-py.py to config.py,
  • add the ScraperAPI API key into config.py,
  • add your list of domains in domains.csv without removing the first line domains.

Fetch list of results from 'Top Stories' featured snippet

The script:

  • takes the list of keywords and crawl locations from news-keywords-tracking.csv;
  • fetches Google SERP for this list of keywords;
  • saves the links of articles that rank in "Top Stories" featured snippet into a CSV.

Before you start:

  • register at DataForSeo.com to obtain API credentials.
  • add your API keys in top-stories-fetch.py

PS: this is an older version of the script, which I am planning to update by September 20, 2024.

The easiest way to set up regular tracking of articles that are ranking on "Top Stories" is by setting up PythonAnywhere.com account with recurring tasks.

Sources of original scripts:

About

Useful SEO scripts on python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages