Revised version (+login function, no need tampermonkey) : https://ahmadiham.id/post/auto-follow-strava/
Script Selenium Open Link in File List
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
from webdriver_manager.chrome import ChromeDriverManager
import time
# Set up Chrome options
chrome_options = Options()
chrome_options.add_argument("--start-maximized") # Optional: starts Chrome maximized
# Set up the Chrome driver
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options)
# Open the file containing URLs
with open('some-file.txt', 'r') as file:
# Read all lines (URLs) from the file
urls = file.readlines()
# Iterate through each URL
for url in urls:
# Strip any whitespace (including newline characters)
url = url.strip()
# Open the URL in the Chrome browser
driver.get(url)
# Wait for 5 seconds before opening the next URL
# You can adjust this delay as needed
time.sleep(5)
print("All URLs have been opened.")
# Close the browser
driver.quit()
Referensi : https://poe.com/s/0zcB8ZKybx0Vc6FDhwVO
Script Tempermonkey Auto Click Follow Button
// ==UserScript==
// @name FollowStrava
// @namespace https://ahmadiham.id/
// @version 2020
// @description Auto-follow Strava
// @author https://t.me/dirut
// @match *://www.strava.com/athletes/*
// @grant none
// @run-at document-idle
// ==/UserScript==
let tmbl = document.querySelectorAll('.follow');
tmbl.forEach(kTmbl => kTmbl.click())