Skip to content

Instantly share code, notes, and snippets.

@danteoh
danteoh / README.md
Created May 9, 2018 18:51
Scripts to migrate Wordpress uploads to S3 for WP Offload S3 Lite

Improvements are welcome!

Roxie Film Center
San Francisco Centre
AMC Metreon 16
Alamo Drafthouse New Mission
AMC Van Ness 14
Marina Theatre
Presidio Theatre
CinéArts Empire
4-Star Theatre
United Artists Stonestown
$timeToFail = time() + $this->config['time_tolerance'];
$el = null;
while(!$this->timeToleranceReached($timeToFail) && !$el){
$page = $this->session->getPage();
$el = null;
try {
\Symfony\Component\CssSelector\CssSelector::toXPath($selector);
$el = $page->find('css', $selector);
} catch (\Symfony\Component\CssSelector\Exception\ParseException $e) {}