-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
laying ground for basic functionality #1
- Loading branch information
1 parent
e02e17a
commit aca5d07
Showing
5 changed files
with
32 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
import sys,os | ||
fileName = sys.argv[1] | ||
if os.path.exists(fileName): | ||
pass | ||
else : | ||
print("File not found!") | ||
import argparse,site | ||
|
||
parser = argparse.ArgumentParser(description="Submit your codechef's solution directly from command-line!!") | ||
parser.add_argument("file", type=str, help="expects code of question in lowercase") | ||
parser.add_argument("-s", "--same", help="solution file must have its name as the code of the question", | ||
action="store_true") | ||
args = parser.parse_args() | ||
code = args.file | ||
if args.same : | ||
print("file name is same") | ||
else: | ||
print("file name is different") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
from selenium import webdriver | ||
from selenium.webdriver.common.keys import Keys | ||
from selenium.webdriver.firefox.options import Options | ||
from time import sleep | ||
import user | ||
|
||
current = user._users_("r") | ||
current.openFile() | ||
uname = current.userDetail("username") | ||
current.closeFile() | ||
|
||
options = Options() | ||
options.headless = True | ||
driver = webdriver.Firefox(options=options) | ||
driver.get("http://google.com/") | ||
print ("Headless Firefox Initialized") | ||
|
||
print ("Done") | ||
driver.get("http://codechef.com/node") | ||
print("Headless Firefox Initialized") | ||
print("Done") | ||
input('Press anything to quit') | ||
print("Finished") | ||
driver.quit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[ | ||
{ | ||
"logged_in": 0, | ||
"username": "polarstern", | ||
"email": "paldhruv89@gmail.com" | ||
} | ||
|