3 ms·
The hardest part was keeping straight in my mind what is executing in the page environment, and what is executing in the environment that controls the script Y
by wslh 13y ago
The hardest part was keeping straight in my mind what is executing in the page environment, and what is executing in the environment that controls the script
YES! that's why we used a browser extension in this and the previous article. Because you know that all the objects live in the same world. You don't have this controller/scraper duality. If someone likes the Phantomjs approach, they can implement the controller as a background web page and the scraper logic in the content.