Skip to content

Commit 916934f

Browse files
committed
Website Cloner
1 parent ab3b85a commit 916934f

File tree

6 files changed

+3476
-1
lines changed

6 files changed

+3476
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,7 @@ calculate compound interest
6464
## Script 14 - Mouse mover
6565
Moves your mouse every 15 seconds
6666
## Script 15 - JSON to YAML converter
67-
Converts JSON file to YAML files. A sample JSON is included for testing.
67+
Converts JSON file to YAML files. A sample JSON is included for testing.
68+
69+
## Script 16 - Website Cloner
70+
Clone any website and open the site in your local IP

Website Cloner/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Python Script
2+
3+
## Script - Website Cloner
4+
5+
### Run server
6+
python sever.py
7+
8+
### Open local site in browser
9+
http://127.0.0.1:7000/
10+
11+
Enter a website link and click Clone Now
12+
It downloads the website and loads the home page of the website in your local IP

Website Cloner/index.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title>PROXY SERVER</title>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="stylesheet" type="text/css" href="./util.css">
8+
<link rel="stylesheet" type="text/css" href="./main.css">
9+
</head>
10+
<body>
11+
<div class="limiter">
12+
<div class="container-login0">
13+
<div class="wrap-login0" style="width: 500px">
14+
<form class="login0-form validate-form" method="post" style="width: 100%">
15+
<div class="wrap-input0">
16+
<input class="input0" type="text" id="link" placeholder="ENTER LINK" required>
17+
<span class="focus-input0"></span>
18+
<span class="symbol-input0">
19+
<i class="fa fa-pencil" aria-hidden="true"></i>
20+
</span>
21+
</div>
22+
23+
<div class="container-login0-form-btn">
24+
<button class="login0-form-btn" id="proxyButton" name="submitButton" type="submit" value="" onclick="proxy()">
25+
CLONE NOW
26+
</button>
27+
</div>
28+
</form>
29+
</div>
30+
</div>
31+
</div>
32+
33+
<script>
34+
function proxy() {
35+
let link = document.getElementById("link").value;
36+
document.getElementById("proxyButton").value = link;
37+
}
38+
</script>
39+
</body>
40+
</html>

0 commit comments

Comments
 (0)