Код: Выделить всё
from pathlib import Path
import requests
from bs4 import BeautifulSoup
import time
from selenium import webdriver
url = 'https://www.nytimes.com/games/wordle/index.html'
driver = webdriver.Firefox()
driver.get(url)
#this will not work
#driver.find_element_by_class_name('Keyboard-module_keyboard__uYuqf')
pageSource = driver.page_source
f = open(Path.cwd()/ 'dfkdf.txt', 'w')
f.write(pageSource)
f.close()
Я спросил ChatGPT, осмотрелся много, и застрял на этом уже пару дней. Как мне это сделать?
Подробнее здесь: https://stackoverflow.com/questions/784 ... rom-wordle