From cd08dcdd71b846c1639bdb5647cdfdc4eded49fd Mon Sep 17 00:00:00 2001 From: filip <“filip.rabiega@gmail.com”> Date: Sat, 26 Apr 2025 13:13:01 +0200 Subject: added chadscrapper-seo.py and backlinkchecker.py and modified others --- backlinkchecker.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 backlinkchecker.py (limited to 'backlinkchecker.py') diff --git a/backlinkchecker.py b/backlinkchecker.py new file mode 100644 index 0000000..45076b0 --- /dev/null +++ b/backlinkchecker.py @@ -0,0 +1,22 @@ +import requests +from bs4 import BeautifulSoup + +DOMAIN = "example.com" +query = f"link:{DOMAIN}" +url = f"https://www.google.com/search?q={query}" + +# Proxy setup (Replace with a working proxy) +proxies = { + "http": "http://your_proxy:port", + "https": "https://your_proxy:port" +} + +headers = {"User-Agent": "Mozilla/5.0"} + +response = requests.get(url, headers=headers, proxies=proxies) +soup = BeautifulSoup(response.text, "html.parser") + +for link in soup.find_all("a"): + href = link.get("href") + if "http" in href: + print(href) -- cgit v1.2.3