Compare commits

..

3 Commits

Author SHA1 Message Date
adf8b5e22e Change testing to false 2023-01-31 19:55:09 -04:00
74518bc568 Add discord config 2023-01-25 23:11:31 -04:00
ae9033ebff Add comments about improvments 2023-01-25 23:11:21 -04:00
2 changed files with 13 additions and 1 deletions

7
.idea/discord.xml generated Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DiscordProjectSettings">
<option name="show" value="ASK" />
<option name="description" value="" />
</component>
</project>

View File

@ -9,6 +9,11 @@ from bs4 import BeautifulSoup
# Made for a friend with love
# Tested with Python 3.10.7 on Windows 10
# TODO: Look into using requests, urllib3, and/or selenium to scrape the page
# https://pypi.org/project/selenium/
# https://pypi.org/project/urllib3/
# https://pypi.org/project/requests/
def scrape():
contents = urllib.request.urlopen("https://kingslanding.nb.ca/employment/").read()
soup = BeautifulSoup(contents, "html.parser")
@ -28,7 +33,7 @@ def scrape():
if __name__ == '__main__':
testing = True
testing = False
will_exit = False
hours = 3