Skip to content

Commit

Permalink
[FIX] Typography
Browse files Browse the repository at this point in the history
  • Loading branch information
haadijafari committed Oct 6, 2024
1 parent f279ea3 commit 729819d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SessProject.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def logIn(driver):
print(driver.find_elements(By.XPATH, "//*[@id=\'ParentForm\']/div[4]/section/div[2]/section/div/div[2]/div/div/div/div[3]"))
driver.find_elements(By.XPATH, "//*[@id=\'ParentForm\']/div[4]/section/div[2]/section/div/div[2]/div/div/div/div[3]")[0].click()


def SemesterUnitListsPage(driver):
# آموزشی
sleep(1)
Expand All @@ -30,6 +31,7 @@ def SemesterUnitListsPage(driver):
# لیست دروس نیمسال
driver.find_elements(By.TAG_NAME, 'li')[28].click()


def ScrapeUnits(driver, fields, Departments):
for Dep in Departments:
dep_units = []
Expand All @@ -51,10 +53,8 @@ def ScrapeUnits(driver, fields, Departments):
doros = driver.find_elements(By.XPATH, "//td[@align=\'center\']")

CSVWriter(fields,dep_units,Dep)






def CSVWriter(fields, data, Dep):
for i in data:
with open('%s.csv' % Dep, 'w', encoding="utf-8-sig") as f:
Expand Down

0 comments on commit 729819d

Please sign in to comment.