From 17d9958cb7b89d384704dc6eb543ea6d98c1336c Mon Sep 17 00:00:00 2001 From: Abhik Das <51049133+abhik007@users.noreply.github.com> Date: Thu, 1 Oct 2020 19:52:38 +0530 Subject: [PATCH 1/3] Update README.md Improved docs --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7468036..5ca560d 100644 --- a/README.md +++ b/README.md @@ -2,5 +2,6 @@ website rank crawler ========== Fetch google PR, sogou PR, baidu rank, alexa rank of a website. +Written in python. -[http://www.lijiejie.com](http://www.lijiejie.com) \ No newline at end of file +[http://www.lijiejie.com](http://www.lijiejie.com) From 9e426e3f1a70a4816c68027dceb1091aa8aefb37 Mon Sep 17 00:00:00 2001 From: amazeCreations <72213567+amazeCreations@users.noreply.github.com> Date: Thu, 1 Oct 2020 20:49:30 +0530 Subject: [PATCH 2/3] Update README.md Updated documentation --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 5ca560d..7fe243a 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,11 @@ website rank crawler ========== Fetch google PR, sogou PR, baidu rank, alexa rank of a website. + Written in python. [http://www.lijiejie.com](http://www.lijiejie.com) + +dependencies : + +urllib2, sys, re, cookielib From 2148c291f115ab1ad96a03e1281562c78472d34f Mon Sep 17 00:00:00 2001 From: Akash Maity <72213567+amazeCreations@users.noreply.github.com> Date: Fri, 29 Oct 2021 17:26:56 +0530 Subject: [PATCH 3/3] added comments for each step --- siteRank.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/siteRank.py b/siteRank.py index 13b31d9..87b6a67 100644 --- a/siteRank.py +++ b/siteRank.py @@ -1,11 +1,14 @@ -#encoding=utf-8 +# website crawler and ranker +# shows google PR, sogou PR, baidu rank, alexa rank of a website +# encoding=utf-8 +# necessary dependencies import urllib2 import sys import re import cookielib - +# webpage crawler and ranker logic class RankCrawler(): def __init__(self, site): self.site = site.strip() @@ -57,4 +60,4 @@ def run(self): print '%s www.site.com' % sys.argv[0] sys.exit(0) else: - RankCrawler(sys.argv[1]).run() \ No newline at end of file + RankCrawler(sys.argv[1]).run()