{"id":22937819,"url":"https://github.com/dimitryzub/seo-position-tracker","last_synced_at":"2025-07-24T11:40:58.684Z","repository":{"id":57465685,"uuid":"421016635","full_name":"dimitryzub/seo-position-tracker","owner":"dimitryzub","description":"A simple Python CLI and in-code SEO position tracking tool for Google and 6 other search engines.","archived":false,"fork":false,"pushed_at":"2023-04-26T11:13:40.000Z","size":356,"stargazers_count":22,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T22:12:12.237Z","etag":null,"topics":["python","python3","ranking","seo","seoranking","serpapi","web","webscraping","website"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimitryzub.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-25T12:34:43.000Z","updated_at":"2024-10-08T22:38:39.000Z","dependencies_parsed_at":"2022-09-17T18:01:07.861Z","dependency_job_id":null,"html_url":"https://github.com/dimitryzub/seo-position-tracker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitryzub%2Fseo-position-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitryzub%2Fseo-position-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitryzub%2Fseo-position-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitryzub%2Fseo-position-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimitryzub","download_url":"https://codeload.github.com/dimitryzub/seo-position-tracker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232199786,"owners_count":18487523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","python3","ranking","seo","seoranking","serpapi","web","webscraping","website"],"created_at":"2024-12-14T12:14:43.289Z","updated_at":"2025-01-02T13:10:38.654Z","avatar_url":"https://github.com/dimitryzub.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cp\u003eSpecial thanks to:\u003c/p\u003e\n\u003cdiv\u003e\n   \u003cimg src=\"https://user-images.githubusercontent.com/81998012/231172985-81515e8b-bc41-46b4-83fa-d129d5f3e718.svg\" width=\"60\" alt=\"SerpApi\"\u003e\n\u003c/div\u003e\n\u003ca href=\"https://serpapi.com\"\u003e\n  \u003cb\u003eAPI to get search engine results with ease.\u003c/b\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003eSEO Position Tracker 📡\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eA simple Python CLI and in-code SEO position tracking tool for Google and 6 other search engines.\u003c/p\u003e\n\u003cp align=\"center\"\u003eThis project uses \u003ca href=\"http://serpapi.com/\"\u003eSerpApi\u003c/a\u003e\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n   \u003cimg src=\"https://user-images.githubusercontent.com/78694043/231775565-1b007b07-e168-4b88-9518-865148e1d2a4.svg\" width=\"500\" alt=\"SerpApi\"\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n  \u003ca href=\"https://pepy.tech/project/seo-position-tracker\"\u003e![Downloads](https://static.pepy.tech/badge/seo-position-tracker/month)\u003c/a\u003e\n  \u003ca href=\"\"\u003e![licence](https://img.shields.io/github/license/dimitryzub/seo-position-tracker?color=blue)\u003c/a\u003e\n\n\u003c/div\u003e\n\n## 🔎 Current search engines support\n\n- Google Search - first 100 organic results.\n- Baidu Search - first 50 organic results.\n- Bing Search - first 50 organic results.\n- DuckDuckGo Search - up to 30 organic results.\n- Yahoo! Search - first 10 organic results.\n- Yandex Search - up to 15 organic results.\n- Naver Search - first 15 organic results.\n\n\n## ⚙️Installation\n\n```bash\n$ pip install seo-position-tracker\n```\n\nInstall from source:\n\nWindows:\n\n```bash\n$ git clone https://github.com/dimitryzub/seo-position-tracking.git\n$ cd seo-position-tracker/\n$ python -m venv env\n$ env/Scripts/activate\n$ pip install poetry\n$ poetry install\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eIf you get an error\u003c/summary\u003e\n\n   ```bash\n   $ pip install chardet \n   $ poetry install\n   ```\n\u003c/details\u003e\n\n## 🤹‍♂️Usage\n\n```bash\n$ seo -h\n```\n\n\u003cdetails\u003e\n\u003csummary\u003e\nAvailable arugments\n\u003c/summary\u003e\n\n```lang-none\nSerpApi SEO position tracker [-h] [-q] [-tk  [...]] [-tw  [...]] [-se  [...]] [-ak] [-hl] [-gl] [-loc] [-d] [-st]\n\nA simple Python CLI for SEO position tracking from Google, Baidu, Bing, DuckDuckGo, Yahoo, Yandex and Naver.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -q , --query          Search query. Default \"coffee\".\n  -tk  [ ...], --target-keywords  [ ...]\n                        Target keywords to track. Default \"['coffee']\".\n  -tw  [ ...], --target-websites  [ ...]\n                        Target websites to track. Default \"['starbucks.com']\".\n  -se  [ ...], --search-engine  [ ...]\n                        Choosing a search engine to track: \"google\", \"baidu\", \"bing\", \"duckduckgo\", \"yahoo\", \"yandex\", \"naver\". You can select multiple search engines. All search   \n                        engines are selected by default.\n  -ak , --api-key       Your SerpApi API key: https://serpapi.com/manage-api-key. Default is a test API key to test CLI.\n  -hl , --lang          Language of the search. Supported only for \"google\", \"baidu\", \"yahoo\" and \"yandex\" engines. Default \"None\". Find more by Googling: \"SerpApi supported        \n                        \u003cengine\u003e languages\"\n  -gl , --country       Country of the search. Supported only for \"google\", \"bing\" and \"yahoo\" engines. Default \"None\". Find more by Googling: \"SerpApi supported \u003cengine\u003e\n                        countries\"\n  -loc , --location     Location of the search. Supported only for \"google\", \"bing\", \"duckduckgo\" and \"yandex\" engines. Default \"None\". Find more by Googling: \"SerpApi supported    \n                        \u003cengine\u003e locations\"\n  -d , --domain         Search engine domain to use. Supported only for \"google\", \"yahoo\" and \"yandex\" engines. Default \"None\". Find more by Googling: \"SerpApi supported \u003cengine\u003e   \n                        domains\"\n  -st , --save-to       Saves the results in the current directory in the selected format (CSV, JSON, TXT). Default CSV.\n\n\nFound a bug? Open issue: https://github.com/dimitryzub/seo-position-tracker/issues\n```\n\n\u003c/details\u003e\n\n## 🤹‍♂️Examples\n\n#### Extracting positions from all search engines for a given query with a target website and a target keyword:\n\n```bash\n$ seo --api-key=\u003cyour_serpapi_api_key\u003e \\\n-q \"minecraft\" \\\n-tk official \\\n-tw minecraft.net\n```\n\n```json\n[\n  {\n    \"engine\": \"google\",\n    \"position\": 1,\n    \"title\": \"Welcome to the Minecraft Official Site | Minecraft\",\n    \"link\": \"https://www.minecraft.net/en-us\"\n  },\n  {\n    \"engine\": \"bing\",\n    \"position\": 1,\n    \"title\": \"Minecraft - Official Site\",\n    \"link\": \"https://minecraft.net/\"\n  },\n  {\n    \"engine\": \"bing\",\n    \"position\": 2,\n    \"title\": \"Welcome to the Minecraft Official Site | Minecraft\",\n    \"link\": \"https://www.minecraft.net/en-us\"\n  },\n  {\n    \"engine\": \"bing\",\n    \"position\": 10,\n    \"title\": \"Minecraft Official Site | Minecraft Education\",\n    \"link\": \"https://education.minecraft.net/en-us\"\n  },\n  {\n    \"engine\": \"duckduckgo\",\n    \"position\": 1,\n    \"title\": \"Minecraft - Official Site\",\n    \"link\": \"https://minecraft.net/\"\n  },\n  {\n    \"engine\": \"duckduckgo\",\n    \"position\": 2,\n    \"title\": \"Welcome to the Minecraft Official Site | Minecraft\",\n    \"link\": \"https://www.minecraft.net/en-us\"\n  },\n  {\n    \"engine\": \"yahoo\",\n    \"position\": 1,\n    \"title\": \"Minecraft - Official Site\",\n    \"link\": \"https://minecraft.net/\"\n  },\n  {\n    \"engine\": \"yahoo\",\n    \"position\": 2,\n    \"title\": \"Welcome to the Minecraft Official Site | Minecraft\",\n    \"link\": \"https://www.minecraft.net/en-us\"\n  },\n  {\n    \"engine\": \"yandex\",\n    \"position\": 2,\n    \"title\": \"Welcome to the Minecraft Official Site | Minecraft\",\n    \"link\": \"https://www.minecraft.net/\"\n  }\n]\n```\n\n#### Extracting positions from 3 search engines with default arguments and saving to JSON:\n\n```bash\n$ seo --api-key=\u003cyour_serpapi_api_key\u003e \\\n-se google bing duckduckgo \\\n-st JSON\n```\n\n```json\n[\n  {\n    \"engine\": \"google\",\n    \"position\": 6,\n    \"title\": \"Starbucks Coffee Company\",\n    \"link\": \"https://www.starbucks.com/\"\n  },\n  {\n    \"engine\": \"bing\",\n    \"position\": 12,\n    \"title\": \"The Best Coffee from Starbucks Coffee: Starbucks Coffee Company\",\n    \"link\": \"https://www.starbucks.com/coffee/\"\n  },\n  {\n    \"engine\": \"duckduckgo\",\n    \"position\": 11,\n    \"title\": \"The Best Coffee from Starbucks Coffee: Starbucks Coffee Company\",\n    \"link\": \"https://www.starbucks.com/coffee/\"\n  }\n]\n```\n\n#### Extracting positions from one engine with all arguments for it:\n\n```bash       \n$ seo --api-key=\u003cyour_serpapi_api_key\u003e \\\n-q serpapi \\\n-tk serpapi \\\n-tw https://serpapi.com/ https://github.com/ \\\n-se google \\\n-hl de \\\n-gl de \\\n-loc Germany \\\n-d google.de \\\n-st TXT\n```\n\n```json\n[\n  {\n    \"engine\": \"google\",\n    \"position\": 1,\n    \"title\": \"SerpApi: Google Search API\",\n    \"link\": \"https://serpapi.com/\"\n  },\n  {\n    \"engine\": \"google\",\n    \"position\": 3,\n    \"title\": \"SerpApi - GitHub\",\n    \"link\": \"https://github.com/serpapi\"\n  }\n]\n```\n\n#### Extracting positions from all search engines manually (without CLI):\n\n```python\nfrom seo_position_tracker.seo_position_tracker import SeoPositionTracker\nimport json\n\ntracker = SeoPositionTracker(\n    query='coffee', \n    api_key='\u003cyour_serpapi_api_key\u003e', \n    keywords=['coffee', 'starbucks'], \n    websites=['starbucks.com']\n)\n\nposition_data = []\n\ngoogle_results = tracker.scrape_google(lang='en', country='us', location='United States', domain='google.com')\nposition_data.extend(google_results)\n\nbaidu_results = tracker.scrape_baidu(lang='1')\nposition_data.extend(baidu_results)\n\nbing_results = tracker.scrape_bing(country='us', location='United States')\nposition_data.extend(bing_results)\n\nduckduckgo_results = tracker.scrape_duckduckgo(location='us-en')\nposition_data.extend(duckduckgo_results)\n\nyahoo_results = tracker.scrape_yahoo(lang='lang_en', country='us', domain='uk')\nposition_data.extend(yahoo_results)\n\nyandex_results = tracker.scrape_yandex(lang='en', domain='yandex.com')\nposition_data.extend(yandex_results)\n\nnaver_results = tracker.scrape_naver()\nposition_data.extend(naver_results)\n\nprint(json.dumps(position_data, indent=2, ensure_ascii=False))\n```\n\n## 💡Issues or suggestions\n\nVisit [issues](https://github.com/dimitryzub/seo-position-tracking/issues) page.\n\n## 📜 Licence\n\nSEO Position Tracker is released under the [BSD-3-Clause Licence](https://github.com/dimitryzub/seo-position-tracker/blob/407a561b23e0905d88e4d9dd22390330e96889e1/LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimitryzub%2Fseo-position-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimitryzub%2Fseo-position-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimitryzub%2Fseo-position-tracker/lists"}