Originally posted by the man who put it in my hood
from selenium import webdriver
from selenium.webdriver.common.by import By
import time
driver = webdriver.Chrome()
latest_threads_url = "https://niggasin.space/latest-threads"
target_post_url = "https://niggasin.space/post/1999999"
new_post_url = "https://niggasin.space/forum/5/new-thread"
while True:
driver.get(latest_threads_url)
time.sleep(5)
threads = driver.find_elements(By.XPATH, "//a[contains(@href, '/post/1999999')]")
if threads:
driver.get(target_post_url)
time.sleep(3)
if "Page not found" not in driver.page_source:
driver.get(new_post_url)
driver.find_element(By.NAME, "title").send_keys("2000000")
driver.find_element(By.NAME, "body").send_keys("Ya my moon sign is Luna hbu? omg no way mine is also Luna")
driver.find_element(By.NAME, "submit").click()
print("Post submitted.")
break
time.sleep(5)
driver.quit()
I fucking hate Selenium. I have trauma with it. But the logic here is broken, cos you could easily automate it to post a bunch of times.
You could even post, get it to look at the post number, edit the post to say "x posts left", then repeat. So you'd have a post counting down to post 2 million. You would do this at about 100, before anyone else expects it. There is no rate control on accounts once they have more than 30 posts.
I might have done this, but I got raped by browser automation.