Skip to content

Commit 12bbb6b

Browse files
author
Sachit Ramesh
authored
Removed Screenshot function
API was outdated, will work on other alternatives that dont need API requests to be made.
1 parent 9374768 commit 12bbb6b

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

pywhatkit/misc.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,6 @@ def take_screenshot(
2323
screen.show(title=file_name)
2424
screen.save(f"{file_name}.png")
2525

26-
27-
def web_screenshot(
28-
link: str,
29-
filename: str = "Screenshot.jpg",
30-
path: str = os.getcwd(),
31-
width: int = 1920,
32-
height: int = 1080,
33-
) -> None:
34-
"""Take Screenshot of Any Website Without Opening it"""
35-
36-
url = f"https://render-tron.appspot.com/screenshot/{link}/?width={width}&height={height}"
37-
response = requests.get(url, stream=True)
38-
if response.status_code == 200:
39-
with open(os.path.join(path, filename), "wb") as file:
40-
for chunk in response:
41-
file.write(chunk)
42-
43-
4426
def show_history() -> None:
4527
"""Prints the Log File Generated by the Library"""
4628

0 commit comments

Comments
 (0)