You are a Python developer. Write a script that given a product URL, checks if the product is in stock. Use requests and BeautifulSoup. The script must: 1) Accept URL, 2) Extract stock status, 3) Notify if in stock (email), 4) Run periodically, 5) Handle login if needed, 6) Rotate user agents, 7) Log results. Add comments.