Skip to content

Commit

Permalink
Merge pull request #6 from DSC-UIT-khi/version3
Browse files Browse the repository at this point in the history
Version3
  • Loading branch information
Raheel Siddiqui authored Apr 19, 2021
2 parents 4bfbfc9 + 6999ccd commit f22ac38
Show file tree
Hide file tree
Showing 32 changed files with 16,372 additions and 178 deletions.
Binary file added .metals/metals.h2.db
Binary file not shown.
5 changes: 5 additions & 0 deletions .metals/metals.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
2021.04.06 23:03:37 INFO Started: Metals version 0.10.0 in workspace 'C:\Users\Raheel\Desktop\Google-DSC-Platform-Extension' for client vscode 1.55.0.
2021.04.06 23:03:41 INFO time: initialize in 3.3s
2021.04.06 23:03:43 WARN Build server is not auto-connectable.
2021.04.06 23:03:43 WARN no build tool detected in workspace 'C:\Users\Raheel\Desktop\Google-DSC-Platform-Extension'. The most common cause for this problem is that the editor was opened in the wrong working directory, for example if you use sbt then the workspace directory should contain build.sbt. 
2021.04.07 01:04:10 INFO shutting down Metals
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"python.pythonPath": "/usr/bin/python3",
"files.watcherExclude": {
"**/target": true
}
}
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# DSC-Platform-Extension
Find **Youtube** Tutorial at
# Google DSC Platform Extension - Version 3.0
This Extension allows DSC Lead to add attendees from a .CSV file through automated process in any hosted session on DSC Platform.
## changes
### 1) Now you can add attendees by giving event link as an input It will add attendees to that particular event.


Find User Guide Below OR Find **Youtube** Tutorial at
https://www.youtube.com/watch?v=HOi1MoDM1Uk&feature=youtu.be

### Installation
1) **Install Python** from https://www.python.org/downloads/
2) **Install Dependencies**
Expand All @@ -12,10 +18,15 @@ pip install -r requirements.txt
### You are ready to go!
The extension is developed by [Raheel Siddiqui](https://github.com/rawheel) with :heart:

## Screenshots
![](screenshots/login.jpg)
## USER GUID (STEPS TO FOLLOW)
### 1) Save your data by giving particular information.
![](screenshots/login.jpg)
### 2) select .CSV which has attendees data, goto (help -> warnings) to check detailed constraints.
![](screenshots/main_window.jpg)
### 3) Paste the event link from event dashboard for example:
![](screenshots/event_link.jpg)
### 4) Click on Start button & see the magic. 😃

### Limitations
1) It is assumed that an account having extension other than gmail is being used. (e.g [email protected])
2) Only a person with Lead role is able to add the CSV file to event.

Binary file added chromedriver_win32.zip
Binary file not shown.
858 changes: 858 additions & 0 deletions debug.log

Large diffs are not rendered by default.

Binary file modified py_files/__pycache__/main_window.cpython-38.pyc
Binary file not shown.
Binary file added py_files/__pycache__/pics_main.cpython-38.pyc
Binary file not shown.
Binary file modified py_files/__pycache__/pics_rc.cpython-38.pyc
Binary file not shown.
Binary file modified py_files/__pycache__/script.cpython-38.pyc
Binary file not shown.
Binary file modified py_files/__pycache__/warnings_window.cpython-38.pyc
Binary file not shown.
55 changes: 55 additions & 0 deletions py_files/checkins.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
from script import *




def CheckIn(email,pas,event_link):
obj = dsc_bot()
obj.login(event_link,email,pas)
obj.bot.get(event_link)
time.sleep(5)
obj.bot.get(event_link)
time.sleep(15)
sort_check = obj.bot.find_element_by_xpath('/html/body/div[1]/div/div/div/div[3]/div/div/div/div/div/div[2]/div/div/div[4]/div/table/thead/tr/th[3]')
sort_check.click()
count = 2
after_count = 7
for k in range(1900):




try:
checkin_btn = obj.bot.find_element_by_xpath(f'/html/body/div[1]/div/div/div/div[3]/div/div/div/div/div/div[2]/div/div/div[4]/div/table/tbody/tr[2]/td[3]/label/span')
checkin_btn.click()
#checkin_btnplus = obj.bot.find_element_by_class_name('contentScrollContainer')
#checkin_btnplus.send_keys(Keys.DOWN)
time.sleep(1)

sort_check = obj.bot.find_element_by_xpath('/html/body/div[1]/div/div/div/div[3]/div/div/div/div/div/div[2]/div/div/div[4]/div/table/thead/tr/th[3]')

sort_check.click()
time.sleep(1)
sort_check.click()
except:
pass





#count+=1
time.sleep(2)

time.sleep(10)




info = (open("secret_info.txt","r").read()).split(' ')
email =info[0]
pas = info[2]
event_link = 'https://dsc.community.dev/accounts/dashboard/#/chapter-194/event-7214/manage'
CheckIn(email,pas,event_link)

#obj.login(email,pas)
54 changes: 54 additions & 0 deletions py_files/checkins1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
from script import *




def CheckIn(email,pas,event_link):
obj = dsc_bot()

obj.login(event_link,email,pas)
obj.bot.get(event_link)
time.sleep(5)
obj.bot.get(event_link)
time.sleep(15)
sort_check = obj.bot.find_element_by_xpath('/html/body/div[1]/div/div/div/div[3]/div/div/div/div/div/div[2]/div/div/div[4]/div/table/thead/tr/th[3]')
sort_check.click()


checkin_btnplus = obj.bot.find_element_by_class_name('contentScrollContainer')

count = 2
while True:

for x in range(10):
try:
checkin_btn = obj.bot.find_element_by_xpath(f'/html/body/div[1]/div/div/div/div[3]/div/div/div/div/div/div[2]/div/div/div[4]/div/table/tbody/tr[{count}]/td[3]/label/span')
checkin_btn.click()
except:
checkin_btnplus.send_keys(Keys.DOWN)
checkin_btn = obj.bot.find_element_by_xpath(f'/html/body/div[1]/div/div/div/div[3]/div/div/div/div/div/div[2]/div/div/div[4]/div/table/tbody/tr[{count}]/td[3]/label/span')
checkin_btn.click()

time.sleep(0.2)
count+=1
checkin_btnplus = obj.bot.find_element_by_class_name('contentScrollContainer')
for x in range(14):
checkin_btnplus.send_keys(Keys.DOWN)



count=3
time.sleep(2)

time.sleep(10)




info= (open("secret_info.txt","r").read()).split(' ')
email =info[0]
pas = info[2]
event_link = 'https://dsc.community.dev/accounts/dashboard/#/chapter-194/event-6611/manage'
CheckIn(email,pas,event_link)

#obj.login(email,pas)
13 changes: 13 additions & 0 deletions py_files/debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[0118/153257.486:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0118/154005.213:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0118/154130.142:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0118/160302.347:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0118/161049.913:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0118/161934.062:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0118/162108.466:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0118/171949.698:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0118/222437.782:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0124/042443.116:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0124/043639.461:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0124/045612.341:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0124/055825.075:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
2 changes: 1 addition & 1 deletion py_files/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def goto_github(self):
webbrowser.open("https://github.com/DSC-UIT-khi/Get-DSC-Platform-Extension")

def get_software(self):
webbrowser.open("https://drive.google.com/drive/folders/1A4LPBtP_gRaumanvV5p_oIDUvbsTDw0i?usp=sharing")
webbrowser.open("https://github.com/DSC-UIT-khi/Google-DSC-Platform-Extension")

def Login(self):
self.email = self.lineEdit.text()
Expand Down
Loading

0 comments on commit f22ac38

Please sign in to comment.