Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 splinter 浏览网站,但问题是我有数百个包含许多图像的页面,而且浏览所有这些页面需要很长时间。我不想改变技术,但我愿意做出权衡,比如让浏览器不下载所有图像(只要它们在 DOM 中就可以了)。
坦克!
好的,刚刚发现如何:
browser = Browser(profile_preferences={'permissions.default.stylesheet': 2, 'permissions.default.image': 2})
与火狐网络驱动程序一起使用