Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/ineelshah/SRIJAS
Browse files Browse the repository at this point in the history
  • Loading branch information
jayrshah98 committed Oct 1, 2021
2 parents 6ed318f + d6548b6 commit 5f2ad60
Show file tree
Hide file tree
Showing 13 changed files with 146 additions and 83 deletions.
31 changes: 20 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
language: python
python:
# PyPy versions
- "pypy3" # currently Python 3.6.1, PyPy 7.1.1-beta0
# command to install dependencies
install:
- pip install pytest
# command to run tests
script:
- cd tests
- pytest
jobs:
include:
- language: python
python:
# PyPy versions
- "pypy3" # currently Python 3.6.1, PyPy 7.1.1-beta0
# command to install dependencies
install:
- pip install pytest
# command to run tests
script:
- cd tests
- pytest
- language: php
php:
- 7.4
script:
- cd /home/travis/build/ineelshah/SRIJAS/Code/Web_app
- php test.php

4 changes: 2 additions & 2 deletions Code/Scrapper/Scrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_job_description(keyword,no_of_jobs_to_retrieve,data):
searchquery="Software Engineer"
options = Options()
options.add_argument("--window-size=1920,1200")
options.add_argument('--headless')
options.headless= True
options.add_argument('--nosandbox')
options.add_argument('--disable-dev-shm-usage')
browser = webdriver.Chrome(options=options, executable_path=ChromeDriverManager().install())
Expand Down Expand Up @@ -171,7 +171,7 @@ def get_job_description(keyword,no_of_jobs_to_retrieve,data):
port = 587
smtp_server = "smtp.gmail.com"
login = "srijas.alerts@gmail.com"
password = "SRIJASGMAILPWD"
password = ""
sender = "srijas.alerts@gmail.com"
for key in final_result:
if key in email_id_list:
Expand Down
2 changes: 1 addition & 1 deletion Code/Web_app/mail_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
msg = MIMEMultipart()
msg['From'] = sender
msg['To'] = receiver
msg['Subject'] = 'PHP Code Test Results'
msg['Subject'] = 'Post deployment test Results'
body = message
msg.attach(MIMEText(body, 'plain'))
text = msg.as_string()
Expand Down
Binary file added Code/Web_app/sample.pdf
Binary file not shown.
8 changes: 5 additions & 3 deletions Code/Web_app/sendData.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
ob_start();
/**
* The function executer runs the entire backend code after the submission
* of the form from index.php. Here, it uses the form data and the uploaded
Expand Down Expand Up @@ -39,10 +40,10 @@ function executer($inputName, $inputEmail, $inputJobTypeId, $target_file){
*/
$paramsFile = file_get_contents("parameters.json");
if($paramsFile){
$params=1;
$paramsCheck=1;
}
else{
$params=0;
$paramsCheck=0;
}
$params = json_decode($paramsFile, true);

Expand Down Expand Up @@ -304,7 +305,7 @@ function executer($inputName, $inputEmail, $inputJobTypeId, $target_file){
}

echo "<br>".$resume_pass."-".$user_pass."<br>";
return array("resume"=>$resume_pass,"user"=>$user_pass,"params"=>$params,"dbConnection"=>$dbConnection);
return array("resume"=>$resume_pass,"user"=>$user_pass,"params"=>$paramsCheck,"dbConnection"=>$dbConnection);
}

$stmt->close();
Expand All @@ -313,6 +314,7 @@ function executer($inputName, $inputEmail, $inputJobTypeId, $target_file){
/**
* Here, the control is sent back to the index.php file
*/
ob_end_clean();
echo "<script type='text/javascript'>window.top.location='index.php';</script>"; exit;

}catch(Exception $e){
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ The links of the jobs that matches with the skills in your resume, will be sent

This is our submission for the Project for Software Engineering CSC 510 Fall 2021.

## Infrastructure Description:
![Infrastructure](https://github.com/ineelshah/SRIJAS/blob/main/images/Infrastructure.jpg)

## Database Schema:
![DB_Schema](https://github.com/ineelshah/SRIJAS/blob/main/images/DB_Schema.jpg)

Expand Down
Binary file added docs/Database.pdf
Binary file not shown.
Binary file modified docs/Infrastructure.pdf
Binary file not shown.
Binary file added docs/Scraper_Service_linked-in_documentation.pdf
Binary file not shown.
Binary file added docs/docsproj1rubricComments.pdf
Binary file not shown.
109 changes: 55 additions & 54 deletions docs/proj1rubric.md

Large diffs are not rendered by default.

Binary file modified images/Infrastructure.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 60 additions & 12 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,62 @@
selenium
time
MIMEMultipart
MIMEText
gaierror
smtplib
pytest
sys
mysql
json
socket
pymysql
appdirs==1.4.3
attrs==19.3.0
Automat==0.8.0
blinker==1.4
certifi==2019.11.28
chardet==3.0.4
Click==7.0
configobj==5.0.6
configparser==5.0.2
constantly==15.1.0
crayons==0.4.0
cryptography==2.8
distlib==0.3.0
distro==1.4.0
entrypoints==0.3
filelock==3.0.12
httplib2==0.14.0
hyperlink==19.0.0
idna==2.8
incremental==16.10.1
Jinja2==2.10.1
jsonpatch==1.22
jsonpointer==2.0
jsonschema==3.2.0
keyring==18.0.1
launchpadlib==1.10.13
lazr.restfulclient==0.14.2
lazr.uri==1.0.3
MarkupSafe==1.1.0
mysql-connector-python==8.0.26
netifaces==0.10.4
oauthlib==3.1.0
pexpect==4.6.0
protobuf==3.18.0
pyasn1==0.4.2
PyHamcrest==1.9.0
PyJWT==1.7.1
pymacaroons==0.13.0
PyMySQL==1.0.2
PyNaCl==1.3.0
pyOpenSSL==19.0.0
pyrsistent==0.15.5
pyserial==3.4
pytest==6.2.5
PyYAML==5.3.1
requests==2.22.0
requests-unixsocket==0.2.0
SecretStorage==2.3.1
selenium==3.141.0
service-identity==18.1.0
simplejson==3.16.0
six==1.14.0
ssh-import-id==5.10
Twisted==18.9.0
urllib3==1.25.8
virtualenv==20.0.17
wadllib==1.3.3
webdriver-manager==3.4.2
zipp==1.0.0



0 comments on commit 5f2ad60

Please sign in to comment.