Last active
December 9, 2017 06:14
-
-
Save ep4sh/cc6d2593adcc82c1dea23713e0f63d64 to your computer and use it in GitHub Desktop.
Selenium vk photo grabber/screenshotter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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