Skip to content

Instantly share code, notes, and snippets.

@ep4sh
Last active December 9, 2017 06:14
Show Gist options
  • Save ep4sh/cc6d2593adcc82c1dea23713e0f63d64 to your computer and use it in GitHub Desktop.
Save ep4sh/cc6d2593adcc82c1dea23713e0f63d64 to your computer and use it in GitHub Desktop.
Selenium vk photo grabber/screenshotter
#Developed by @ep4sh
#This one brute with login:login entities
#U can modify this as u want
from selenium import webdriver
driver = webdriver.Firefox()
driver.get("https://www.vk.com/")
login = driver.find_element_by_id("index_email")
password = driver.find_element_by_id("index_pass")
submit = driver.find_element_by_id("index_login_button")
login.send_keys("89079080011") #vk login
password.send_keys("password!") #vk pass
submit.click()
driver.get("https://vk.com/______YOUR-PHOTO-id-here")
driver.implicitly_wait(25)
driver.save_screenshot("src.png")
driver.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment