forked from ineelshah/SRIJAS
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change in Scrapper and minor bug solve
- Loading branch information
Showing
5 changed files
with
34 additions
and
24 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
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
from socket import gaierror | ||
import json | ||
|
||
def sendmail(final_result,email_id_list): | ||
def sendmail(final_result,email_id_list, job_role): | ||
port = 587 | ||
smtp_server = "smtp.gmail.com" | ||
login = "[email protected]" | ||
|
@@ -29,8 +29,8 @@ def sendmail(final_result,email_id_list): | |
print(link) | ||
pre = """<a href='""" | ||
embedded_link = link | ||
post = """'>View Position</a>""" | ||
temp_str += (str(counter) + ". " + pre + embedded_link + post+ '\n') | ||
post = """'>Click here</a>""" | ||
temp_str += (str(counter) + ". " + job_role[counter-1] + ': ' + pre + embedded_link + post+ '\n') | ||
counter += 1 | ||
body += temp_str | ||
msg.attach(MIMEText(body, 'html')) | ||
|
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