Compare commits
3 Commits
7f9cac6be8
...
master
Author | SHA1 | Date | |
---|---|---|---|
adf8b5e22e | |||
74518bc568 | |||
ae9033ebff |
7
.idea/discord.xml
generated
Normal file
7
.idea/discord.xml
generated
Normal 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>
|
@ -9,6 +9,11 @@ from bs4 import BeautifulSoup
|
|||||||
# Made for a friend with love
|
# Made for a friend with love
|
||||||
# Tested with Python 3.10.7 on Windows 10
|
# 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():
|
def scrape():
|
||||||
contents = urllib.request.urlopen("https://kingslanding.nb.ca/employment/").read()
|
contents = urllib.request.urlopen("https://kingslanding.nb.ca/employment/").read()
|
||||||
soup = BeautifulSoup(contents, "html.parser")
|
soup = BeautifulSoup(contents, "html.parser")
|
||||||
@ -28,7 +33,7 @@ def scrape():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
testing = True
|
testing = False
|
||||||
will_exit = False
|
will_exit = False
|
||||||
|
|
||||||
hours = 3
|
hours = 3
|
||||||
|
Reference in New Issue
Block a user