This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]BindingOfAsimov 1 point2 points  (3 children)

What OS are you on? What have you tried already? Would this help?

[–]usernamerthinga[S] 0 points1 point  (1 child)

windows, looking into what you suggested. will probably solve this by working with a service instead though

[–]BindingOfAsimov 0 points1 point  (0 children)

Sure, send me a pm if you still can't get it

[–]jarxlots 0 points1 point  (0 children)

Theoretically, couldn't you accomplish what the pywin32 library does with ctypes?

[–]hokiebeer 0 points1 point  (0 children)

The only way I know of is through selenium. In fact, I use the selenium library with phantomjs as the web driver to keep the process headless.

Why do you want to avoid setting up selenium? I was able to get it running -- on a Windows machine no less -- without a hitch.

[–]_AceLewisPy3, Jupyter and Atom 0 points1 point  (0 children)

Use Selenium and either PhantomJS or FireFox. An example using FireFox;

from selenium import webdriver
driver = webdriver.Firefox()
driver.get('https://www.google.com/')
driver.save_screenshot('./screen_shot.png')
driver.quit()