问题
Im trying to block certain URLs while acessing a website. Meaning i only make the requests required to proceed. There is one url automatically loading a 5mb code i cant block disabling css by firefox profiles. I read selenium doesnt allow that amount of control but im unshure if there is some way to set it using an addon. However im unable to control block url addon using python. Is there any way apart from modifying the hosts file? I sucessfully blocked the urls using network monitor programs but they arent user friendly at all.
来源:https://stackoverflow.com/questions/59415504/block-request-url-selenium-firefox-python