driver = creat_chrome()
driver.get(url)
WebDriverWait(driver, 20).until(EC.visibility_of_all_elements_located((By.ID, "DisplayNewsDetails_main_div")))
innerHTML = driver.execute_script("return document.documentElement.outerHTML")
innerHTML = driver.execute_script("return document.documentElement.outerHTML")
сайте потом дает тебе HTML @client.event
async def on_raw_reaction_remove(payload):
if payload.message_id in roles_assignment_setup['massage_id']:
if payload.emoji.name in roles_assignment_setup["emoji_to_role"]:
guild = client.get_guild(payload.guild_id)
member_remove_role = await guild.fetch_member(payload.user_id)
role = discord.utils.get(guild.roles,
id=roles_assignment_setup["emoji_to_role"][payload.emoji.name])
await member_remove_role.remove_roles(role)
log.info(f"Role was removed {member_remove_role} - {role}")
my_list = [func_test_1, func_test_2, func_test_3]
random.choice(my_list)()
test3примеры кода
await ctx.send(online)