+ 2
How to take Screenshot in python
for my other project need help : === Question : Display a dataframe where unemployment was greater than 8.5%. Take a screen-shot. ==== I wrote below code in first cell : "import pandas as pd file_csv=("https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/PY0101EN/projects/coursera_project/clean_unemployment.csv") df['unemployment']>8.5 " It outputs some value, But how to take a screen shot
4 Antworten
+ 1
Using python to take screen shot
+ 1
Thanks Thomas, will try and let the forum know
0
Use python itself to take a screenshot? Or how to take a screenshot using windows/mac/linux?
Which do you mean?
0
Using the MSS Module you can do this:
from mss import mss
with mss() as sct:
sct.shot()
Another option is ImageGrab, though it is worth noting that ImageGrab will only work with Windows OS
from PIL import ImageGrab
snapshot = ImageGrab.grab() save_path = "C:\\Users\\YourUser\\Desktop\\MySnapshot.jpg"
snapshot.save(save_path)