File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff 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-
4426def show_history () -> None :
4527 """Prints the Log File Generated by the Library"""
4628
You can’t perform that action at this time.
0 commit comments