Skip to content

Instantly share code, notes, and snippets.

@nitink133
Created April 14, 2018 07:18
Show Gist options
  • Save nitink133/c0349618454eb0816af085ea1b4222f1 to your computer and use it in GitHub Desktop.
Save nitink133/c0349618454eb0816af085ea1b4222f1 to your computer and use it in GitHub Desktop.
Screenshots.py is an python script for taking screenshots of android mobile using system and save these in system
import os
def Screenshot(n):
pageno=1
for pageno in range(pageno,n):
print ("Wait...")
os.system("adb exec-out screencap -p > " +str(pageno)+".png")
os.system("adb shell input swipe 300 700 50 700")
Screenshot(8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment