Quantcast
Channel: Planet Python
Viewing all articles
Browse latest Browse all 22462

Will McGugan: Posting Screenshots with Inthing

$
0
0

Inthing can take a screenshot of your desktop then post it online.

Here's a quick example:

from inthing import Stream
my_stream = Stream.new()
my_stream.screenshot(title="My Desktop", delay=5).browse()

Alternatively you can do the same thing from the command line with the inthing app. The following is equivalent to the Python code (assuming you have set up the stream and password environment variables):

$ inthing screenshot --title "Screenshot from the command line" --delay 5 --browse

See the docs for more details.

Screenshot capabilities courtesy of the excellent pyscreenshot library.

Screenshot taken with Stream.screenshot


Viewing all articles
Browse latest Browse all 22462

Trending Articles