internetarchive / umbra

A queue-controlled browser automation tool for improving web crawl quality
Apache License 2.0
60 stars 25 forks source link

ARI-3904 Instagram behavior to scroll past two pages, and click to enla... #32

Closed adam-miller closed 9 years ago

adam-miller commented 10 years ago

...rge images.

nlevitt commented 10 years ago

I think that the behavior code goes in the same general namespace as the rest of the page's javascript. That's why I prefixed every variable and function name with "umbra" or "UMBRA_" in the other behaviors. (Maybe there's a better way to do this with a class or something, not sure.)

(Also in the behaviors I wrote I tried to click on stuff only when it's visible on screen, based on the idea that it's more like real browsing that way. But if it works it works, I might have gone to those lengths for no good reason, so I'm not gonna make you do that. :))