Aktywne Wpisy
![Igrekpl](https://wykop.pl/cdn/c3397992/Igrekpl_2OPZuwmP4q,q60.jpg)
Igrekpl +177
Po półtora roku od założenia mojego 125L akwarium, choroba zaczęła postępować, i właśnie w mieszkaniu zameldował się drugi baniaczek o pojemności 400L ( ͡º ͜ʖ͡º) wrzucę zdjęcia jak będzie gotowe :D #akwarystyka
![Igrekpl - Po półtora roku od założenia mojego 125L akwarium, choroba zaczęła postępow...](https://wykop.pl/cdn/c3201142/47f7ca050dce26a938f228b2d5a3e2f5c1c3f871f7c8fdd810a673ac1f945bea,w150.jpg?author=Igrekpl&auth=e7fa2ceaae8427af7016564ec600badc)
źródło: temp_file124708933114608673
Pobierz![Suheil-al-Hassan](https://wykop.pl/cdn/c0834752/0a34ba52b3a0cc34d42d7ab5e57b693402e4e1979cbd4f9e393cf6942e6fa389,q60.jpg)
Suheil-al-Hassan +782
![Suheil-al-Hassan - #przypadkowymurzyn
Polska strona H&M. xD](https://wykop.pl/cdn/c3201142/0feb6dfb67dd09b30d1290182d91bdf3f80e52e3a16908f638460f70e9c1805f,w150.jpg?author=Suheil-al-Hassan&auth=2840459f392aeb5e5b980540d42fa392)
źródło: 1000008341
Pobierz
hej, jestem całkowicie zielona a chciałabym sobie hobbistycznie napisać na początku bota na sympatię (wyszukiwanie nowych użytkowników po ikonce zielonego listka, spisywanie linku do ich profilu do pliku txt, wysyłanie im wiadomości [a w sumie jednej osobie jednej wiadomości dziennie]), a potem scrapera ekw xD
narazie się zatrzymałam na niemożności przejściu do danej podstrony (meet) na sympatii :( coś po zalogowaniu nie mogę na nią wejść :( chatgpt nie daje rady pomóc
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
# Initialize the Chrome web driver
driver = webdriver.Chrome()
# Open a website
driver.get("[https://login.sympatia.onet.pl](https://login.sympatia.onet.pl)") # Replace with the URL of the website you want to visit
# Wait for the cookie banner to appear (customize the selector and timeout)
try:
cookie_banner = WebDriverWait(driver, 5).until(
EC.presence_of_element_located((By.XPATH, "//*[@id='rasp_cmp']/div")) # Replace with the actual element ID or selector
)
# Accept the cookies (customize the button selector)
accept_button = cookie_banner.find_element(By.XPATH, "//*[@id='rasp_cmp']/div/div[6]/button[2]") # Replace with the actual button ID or selector
accept_button.click()
except Exception as e:
print("Could not find or click the accept button:", str(e))
username = driver.find_element(By.NAME, 'email')
password = driver.find_element(By.NAME, 'password')
username.send_keys("aaa")
password.send_keys("bbb")
# Submit the form
driver.find_element(By.XPATH,'//*[@id="__next"]/div[1]/div[1]/div/form/button').click()
# Continue with your interactions on the logged-in website
# ...
wait = WebDriverWait(driver, 10)
element = wait.until(EC.element_to_be_clickable((By.XPATH, '//*[@id="menuContainer"]/div/div[2]/nav/ul/li[2]/a/div[2]')))
#desired_page_url = "[https://sympatia.onet.pl/meet"](https://sympatia.onet.pl/meet")
#driver.get(desired_page_url)
# Define the XPath of the element you want to click
#xpath = "//*[@id='menuContainer']/div/div[2]/nav/ul/li[2]/a/div[2]"
# Find the element using its XPath
#element = driver.find_element_by_xpath(xpath)
# Click the element
#element.click()
import time
time.sleep(1)
desiredpageurl = "https://sympatia.onet.pl/meet"
driver.get(desiredpageurl)