Skip to content

Commit 9c2199c

Browse files
committed
don't rely on example.com
1 parent 97dba5b commit 9c2199c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import requests
22

3+
34
def get_website_content(url):
45
response = requests.get(url)
56
return response.text
67

8+
79
def main():
8-
content = get_website_content("https://example.com")
10+
content = get_website_content("https://google.com")
911
print(content)
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import requests
22

3+
34
def get_website_content(url):
45
response = requests.get(url)
56
return response.text
67

8+
79
def main():
8-
content = get_website_content("https://example.com")
10+
content = get_website_content("https://google.com")
911
print(content)

0 commit comments

Comments
 (0)