Coder Social home page Coder Social logo

Google sometimes serves a legacy page meant for bots and/or old browsers - this breaks the search controller and results in a TimeoutException. about ad_clicker HOT 4 CLOSED

coskundeniz avatar coskundeniz commented on June 19, 2024
Google sometimes serves a legacy page meant for bots and/or old browsers - this breaks the search controller and results in a TimeoutException.

from ad_clicker.

Comments (4)

pmnlla avatar pmnlla commented on June 19, 2024

I figured I should attach my chrome options.

    chrome_options = ChromeOptions()
    chrome_options.add_argument("--disable-gpu")
    chrome_options.add_argument("--disable-dev-shm-usage")
    chrome_options.add_argument("--disable-infobars")
    chrome_options.add_argument("--disable-popup-blocking")
    chrome_options.add_argument("--disable-notifications")
    chrome_options.add_argument("--ignore-ssl-errors")
    chrome_options.add_argument("--start-maximized")
    chrome_options.add_argument(f"--user-agent={user_agent_str}")
    chrome_options.add_argument("--user-data-dir=/tmp/chrome")
    chrome_options.add_argument("--disable-setuid-sandbox")
    chrome_options.add_argument("--disable-application-cache")
    chrome_options.add_argument("--disable-extensions")
    chrome_options.add_argument("--enable-javascript")
    chrome_options.add_argument("--disable-blink-features=AutomationControlled")
    
#if headless
    chrome_options.add_argument("--no-sandbox")
    chrome_options.add_argument("--window-size=1920,1080")

from ad_clicker.

pmnlla avatar pmnlla commented on June 19, 2024

Update on this: the legacy page does not serve ads any more, as far as I'm aware. This means we need to figure out what triggers it, which I found out is some obscured fingerprinting code. Unless we can bypass it, mass deployment of this is likely toast after a while on instances dedicated to it.

I'm waiting for a friend to spin up some VMs for me on her home lab so I can test this using non-oracle IP ranges.

from ad_clicker.

coskundeniz avatar coskundeniz commented on June 19, 2024

It is related to selected user agent string. I updated it to take user agent only from the predefined list.

from ad_clicker.

pmnlla avatar pmnlla commented on June 19, 2024

Got it. Pulled the latest commit, everything seems to work now. Thanks a lot!

from ad_clicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.