Skip to content

Suggested feature to refuse additional cookies when connecting from EU #6

@giovsta

Description

@giovsta

I added this line very quickly, after line 44 in the file scraper.py, contained in the "scraping" folder:

driver.execute_script("window.scrollTo(0, document.body.scrollHeight)")
driver.find_element(By.ID, "W0wltc").click()

it works as intended, as I needed it to click to not accept additional cookies when it opens the google images pages in incognito mode, and I suggest you to add it for those connecting from the EU, maybe with a check so that if it does not appear for users from other countries it does not give an error.

I cannot provide the edit myself as I don't have git here and I am not savy with contributions on github yet.

I hope this helps, as this tool helped me immensely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions