summaryrefslogtreecommitdiff
path: root/backlinkchecker.py
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2025-04-26 13:13:01 +0200
committerfilip <“filip.rabiega@gmail.com”>2025-04-26 13:13:01 +0200
commitcd08dcdd71b846c1639bdb5647cdfdc4eded49fd (patch)
tree1125ddb458495a4a1d0452e386c554bec6742649 /backlinkchecker.py
parentcdbef4e091c9dfbbc7c93cdfc8205be30141b2a0 (diff)
downloadchadscraper-cd08dcdd71b846c1639bdb5647cdfdc4eded49fd.tar.gz
chadscraper-cd08dcdd71b846c1639bdb5647cdfdc4eded49fd.tar.bz2
chadscraper-cd08dcdd71b846c1639bdb5647cdfdc4eded49fd.zip
added chadscrapper-seo.py and backlinkchecker.py and modified others
Diffstat (limited to 'backlinkchecker.py')
-rw-r--r--backlinkchecker.py22
1 files changed, 22 insertions, 0 deletions
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)