<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Mahesh Saxena</title>
    <description>The latest articles on Forem by Mahesh Saxena (@mahesh_saxena_india).</description>
    <link>https://forem.com/mahesh_saxena_india</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2949613%2F1a198e6d-4fa4-45b2-a583-b9a87b1ec1c8.png</url>
      <title>Forem: Mahesh Saxena</title>
      <link>https://forem.com/mahesh_saxena_india</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mahesh_saxena_india"/>
    <language>en</language>
    <item>
      <title>I developed a python script automatically place my Upakarma Shilajit order on 5th of every month.</title>
      <dc:creator>Mahesh Saxena</dc:creator>
      <pubDate>Mon, 17 Mar 2025 08:48:28 +0000</pubDate>
      <link>https://forem.com/mahesh_saxena_india/i-developed-a-python-script-automatically-place-my-upakarma-shilajit-order-on-5th-of-every-month-4j8h</link>
      <guid>https://forem.com/mahesh_saxena_india/i-developed-a-python-script-automatically-place-my-upakarma-shilajit-order-on-5th-of-every-month-4j8h</guid>
      <description>&lt;p&gt;I am a regular user of &lt;a href="https://upakarma.com/product-category/pure-shilajit/" rel="noopener noreferrer"&gt;Upakarma Shilajit&lt;/a&gt; because it enhances my mental strength as well as my physical endurance. But sometimes I missed my daily dose because my stock used to get finished every month. In order to get rid of this issue I developed a python script automatically place my Upakarma Shilajit order on 5th of every month. I will share the script with you so that you can do it too.&lt;/p&gt;

&lt;p&gt;To setup the script I installed selenium &lt;br&gt;
&lt;code&gt;pip install selenium&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Download ChromeDriver (or the driver for your browser) from chromedriver and place it in your system's PATH.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import time
import datetime

# Your order details
EMAIL = "your-email@example.com"
PASSWORD = "your-password"
PHONE = "your-phone"
ADDRESS = "Your full address"
CITY = "Your City"
PINCODE = "Your Pincode"
PRODUCT_URL = "https://upakarma.com/product-category/pure-shilajit/"

# Open browser
driver = webdriver.Chrome()  # Make sure ChromeDriver is installed
driver.get("https://www.upakarma.com")

# Wait for page to load
time.sleep(3)

# Login to account
driver.find_element(By.LINK_TEXT, "Login").click()
time.sleep(2)
driver.find_element(By.NAME, "email").send_keys(EMAIL)
driver.find_element(By.NAME, "password").send_keys(PASSWORD)
driver.find_element(By.NAME, "password").send_keys(Keys.RETURN)
time.sleep(3)

# Go to product page
driver.get(PRODUCT_URL)
time.sleep(3)

# Add to cart
driver.find_element(By.CLASS_NAME, "add-to-cart-button").click()
time.sleep(2)

# Go to checkout
driver.get("https://www.upakarma.com/checkout")
time.sleep(3)

# Fill in details
driver.find_element(By.NAME, "phone").send_keys(PHONE)
driver.find_element(By.NAME, "address").send_keys(ADDRESS)
driver.find_element(By.NAME, "city").send_keys(CITY)
driver.find_element(By.NAME, "pincode").send_keys(PINCODE)

# Proceed to payment
driver.find_element(By.CLASS_NAME, "proceed-to-payment").click()
time.sleep(5)

# Confirm order (manual step for now)
print("Order placed up to the payment step. Complete payment manually.")

# Close browser
driver.quit()

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can schedule this script to run on 5th of every month. Here are the steps to schedule the task.&lt;br&gt;
Windows Task Scheduler&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open Task Scheduler → Click Create Basic Task&lt;/li&gt;
&lt;li&gt;Name: "Upakarma Shilajit Order"&lt;/li&gt;
&lt;li&gt;Trigger → Select "Monthly" → Pick the 5th&lt;/li&gt;
&lt;li&gt;Action → "Start a Program" → Select python.exe → Add script path&lt;/li&gt;
&lt;li&gt;Click Finish&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>programming</category>
      <category>python</category>
      <category>upakarma</category>
      <category>automation</category>
    </item>
  </channel>
</rss>
