selenium.webdriver相关使用问题

我根据其他的播客尝试初步的尝试使用selenium.webdriver对firefox进行简单的操作,但下方的代码在输入之后就崩溃了。如果直接把网址赋值给url,则不会出现问题。如何解决输入后崩溃的问题?
问题相关代码

# python 3.8
# This is the code for selenium to get the comixes.

# import list
import requests
import time
import re
import random
from selenium import webdriver
from selenium.webdriver.common.keys import Keys  # 输入框回车
from selenium.webdriver.common.by import By  # 与下面的2个都是等待时要用到
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import NoSuchElementException, TimeoutException  # 异常处理


def main():
    driver = webdriver.Firefox()
    #url = 'https://xmanhua.com/m11156/'
    input(url)
    driver.get(str(url))
    wait = WebDriverWait(driver, 25)
    driver.maximize_window()  # 窗口最大化
    html = driver.page_source
    print(html)
    driver.quit()
    

if __name__ == '__main__':
    main()

input(url) 这行改成url=input()

应该是url = input(),这样你输入的就会赋值到url上了