Skip to content

Instantly share code, notes, and snippets.

View dokenzy's full-sized avatar
🏠
Working from home

dokenzy dokenzy

🏠
Working from home
View GitHub Profile
@dokenzy
dokenzy / selenium-screenshotting.md
Created March 25, 2016 06:34 — forked from dannguyen/selenium-screenshotting.md
Using Selenium and Python to screenshot a javascript-heavy page

Using Selenium and Python to screenshot a javascript-heavy page

As websites become more JavaScript heavy, it's harder to automate things like screenshotting for archival purposes. I've seen examples and suggestions to use PhantomJS for visual testing/archiving of websites, but have run into issues such as the non-rendering of webfonts. I've never tried out Selenium until today...and while I'm not thinking about performance implications yet, Selenium seems far more accurate than PhantomJS...which makes sense since it actually opens a real browser. And it's not too hard to script to do complex interactions: here's an [example of how to log in to Twitter, write a tweet, upload an image, and send a tweet via Selenium and DOM element selection](https://gist.github.com/dannguyen/8a6fa49253c1d6a0eb92

@dokenzy
dokenzy / forkme.svg
Created March 27, 2016 07:49 — forked from jnothman/forkme.svg
"Fork me on GitHub" ribbon in LaTeX/TikZ vector graphic
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.