[Python] Python VS Studio Code not reconizing @character

Discussão em 'Python' iniciado por Stack, Maio 27, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to write a scraping code with Python in VS Code and I need to use my email at certain point. The problem is that the @ character is not being recognized by VS Code. I tried using other Python environments and it seems to work fine, so I'm guessing the problem is with VS Code.

    My code is:

    import selenium
    from selenium import webdriver
    from selenium.webdriver.common.keys import Keys
    from selenium.webdriver.common.by import By

    driver=webdriver.Edge()

    driver.get("webpage")

    #Press a button
    elem=driver.find_element(By.CLASS_NAME,"btn-alumni")
    elem.click()

    #Introducing email
    email="example@gmail.com"
    driver.find_element(By.ID,"username").send_keys(email)


    It just writes "examplegmail.com" in the website, as if it @ was not there

    Additionally, if i try

    print(email)


    The output is:

    examplegmail.com


    I'm pretty new to this, i just installed VS Code a couple of days ago and got the python extension

    How can I fix this?

    Continue reading...

Compartilhe esta Página