Kaynağa Gözat

Finished article on web automation

Will Koehrsen 7 yıl önce
ebeveyn
işleme
da9d0a3b0e

+ 12 - 3
web_automation/canvas_upload.ipynb

@@ -2,9 +2,17 @@
  "cells": [
   {
    "cell_type": "code",
-   "execution_count": 7,
+   "execution_count": 18,
    "metadata": {},
-   "outputs": [],
+   "outputs": [
+    {
+     "name": "stdout",
+     "output_type": "stream",
+     "text": [
+      "('EECS491', 'Assignment 3 - Inference in Larger Graphical Models.txt')\n"
+     ]
+    }
+   ],
    "source": [
     "# selenium for web driving\n",
     "import selenium\n",
@@ -27,7 +35,8 @@
     "    file_list = list(os.listdir(os.path.join(submission_dir, directory)))\n",
     "    if len(file_list) != 0:\n",
     "        file_tup = (directory, file_list[0])\n",
-    "        \n",
+    "    \n",
+    "print(file_tup)\n",
     "    "
    ]
   },

+ 1 - 1
web_automation/canvas_upload.py

@@ -132,7 +132,7 @@ if __name__ == "__main__":
 		print('No files to submit')
 
 	else:
-		print('Assignment {} for {} found.'.format(file_tup[0], file_tup[1]))
+		print('Assignment "{}" for "{}" found.'.format(file_tup[1], file_tup[0]))
 		input('Press enter to proceed: ')
 		submit_assignment(file_tup)
 

BIN
web_automation/images/cover.jpeg


BIN
web_automation/images/program_start.PNG


+ 3 - 0
web_automation/images/submission.gif

@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b879ad50d4623f9a812c2983ae06d1bde94fcd103b80b1aa8d9fc610aa38b301
+size 1354688

BIN
web_automation/images/submission.mp4


BIN
web_automation/images/submit_page.png