Python Forum
[Selenium] Any Tricks To Block Junk Scripts From Loading?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Selenium] Any Tricks To Block Junk Scripts From Loading?
#1
When I visit CNN for example, it loads all kinds of junk that makes the load time really high:

[Image: seIvtm_XTfmJKEXBJIgUHA.png]

Tracking scripts, analytics, ads services, all kinds of unwanted crap.

I don't want to completely disable javascript.

What's the best solution to block these?

I've heard it's possible to install plugins like NoScript for Chromedriver..

Is there a better way? What do you guys recommend?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  selenium returns junk instead of html klaarnou 5 2,229 Mar-27-2022, 07:20 AM
Last Post: klaarnou
  Selenium Parsing (unable to Parse page after loading) oneclick 7 6,005 Oct-30-2020, 08:13 PM
Last Post: tomalex
  pandas library tricks metulburr 7 4,511 Jul-03-2019, 10:16 PM
Last Post: snippsat
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 3,627 Nov-03-2017, 08:41 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020