{"id":18298499,"url":"https://github.com/danialjivraj/booking-shift-webscraper","last_synced_at":"2025-04-09T09:17:23.008Z","repository":{"id":203185666,"uuid":"708951235","full_name":"danialjivraj/booking-shift-webscraper","owner":"danialjivraj","description":"webscrapes a booking shift webpage using selenium and sends a notification of available shifts in a text channel via discord bot","archived":false,"fork":false,"pushed_at":"2024-04-28T16:34:42.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T03:24:52.380Z","etag":null,"topics":["danialjivraj","python","python-script","python-webscraping"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danialjivraj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-23T18:00:03.000Z","updated_at":"2024-08-09T15:18:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"63d02e66-264e-42ef-8713-e3ee80e902a2","html_url":"https://github.com/danialjivraj/booking-shift-webscraper","commit_stats":null,"previous_names":["danialjivraj/shift-availability-script-using-python-selenium-and-discord-bot-api","danialjivraj/booking-shift-webscraper-with-selenium","danialjivraj/booking-shift-webscraper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danialjivraj%2Fbooking-shift-webscraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danialjivraj%2Fbooking-shift-webscraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danialjivraj%2Fbooking-shift-webscraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danialjivraj%2Fbooking-shift-webscraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danialjivraj","download_url":"https://codeload.github.com/danialjivraj/booking-shift-webscraper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008624,"owners_count":21032556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["danialjivraj","python","python-script","python-webscraping"],"created_at":"2024-11-05T15:06:15.442Z","updated_at":"2025-04-09T09:17:22.975Z","avatar_url":"https://github.com/danialjivraj.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# booking-shift-webscraper\n\n## Jen\nJen is a Discord bot that collects web-scraped data from a booking shift webpage using Selenium. \u003cbr\u003e\nThis data is then transmitted as notifications detailing available shifts/booked days to a designated text channel on Discord. \u003cbr\u003e\nThe script offers flexibility through a set of boolean flags that allow the user to specifically choose their preferred settings. \u003cbr\u003e\n\n## Webscraped Website\nThis website operates on a first-come, first-served basis for booking shifts. \u003cbr\u003e\nReserved shifts can be canceled up to two days before the shift. \u003cbr\u003e\nHowever, if a particular day and shift are fully booked and someone cancels, the newly available shift isn't automatically made known to everyone. \u003cbr\u003e\n\n## Website Preview\n\n![Available Shifts Preview](https://github.com/danialjivraj/Shift-Availability-Script-Using-Python-Selenium-and-Discord-Bot-API/assets/61945058/79e0fe66-0ddc-461c-a9f1-08362bdc4052)\n\n### Clicking on a day with available shifts\n![Booked Shifts Preview](https://github.com/danialjivraj/booking-shift-webscraper/assets/61945058/ad17de85-360c-431a-8704-d7d009e9c737)\n\n### Clicking on a day which has been booked\n![Shift Booking Process](https://github.com/danialjivraj/booking-shift-webscraper/assets/61945058/d6f433af-b116-4fe7-8226-23ee0894e401)\n\n\n## Script Features\n- Shift Availability Notification\n    - Notifies users in real-time about available and booked shifts on specified days, as well as having the ability to look for specific shifts, for example \"10:00 - 18:00\" on a Saturday.\n- Automatic Booking\n    - Can automatically book desired shifts based on predefined script selection.\n- Shift Filtering\n    - Filters shifts based on specific days and shifts, allowing users to focus on preferred time slots.\n- User Interaction\n    - Listens to the script commands entered by the user in a Discord channel and runs the program accordingly.\n- Discord Embed Messages\n    - Sends formatted Discord embed messages containing shift details and clickable links for quick action.\n\n## Dependencies\n\n- discord.py\n```\npip install discord.py\n```\n- selenium\n```\npip install selenium\n```\n- python-dotenv\n```\npip install python-dotenv\n```\n\n### Chrome Driver\nThe latest version of [Chrome Driver](https://googlechromelabs.github.io/chrome-for-testing/) is needed. \u003cbr\u003e\nThe path needs to be set up properly in `chromeDriverMode.py`. \u003cbr\u003e\n\n## Commands\n- **f:** Filter available and booked shifts and send both booked and available days.\n- **fa:** Filter available shifts only and send available days only (no booked days).\n- **af:** Automatically book desired shifts, filter available and booked shifts.\n- **afa:** Automatically book desired shifts, filter available shifts only (no booked days).\n- **afb:** Automatically book desired shifts, filter booked days only (no available days).\n- **a:** All available and booked shifts and send both booked and available days.\n- **aa:** All available days and send only available days (no booked days).\n- **a a:** Automatically book desired shifts, all available and booked shifts.\n- **a aa:** Automatically book desired shifts, all available shifts only (no booked days).\n- **a ab:** Automatically book desired shifts, all booked days only (no available days).\n- **b:** Retrieve booked days only (loops once).\n- **s:** Stop the bot and halt all executions.\n\n## Preview\n![image](https://github.com/danialjivraj/Shift-Availability-Script-Using-Python-Selenium-and-Discord-Bot-API/assets/61945058/3b7600fa-7ec8-4d79-b790-79d04ee4890a)\n![image](https://github.com/danialjivraj/Shift-Availability-Script-Using-Python-Selenium-and-Discord-Bot-API/assets/61945058/39cf3b72-8032-4a99-ae2f-4aafea06862a)\n![image](https://github.com/danialjivraj/Shift-Availability-Script-Using-Python-Selenium-and-Discord-Bot-API/assets/61945058/e60b0913-0273-4aa5-b5aa-afe58bf0d6b9)\n![image](https://github.com/danialjivraj/Shift-Availability-Script-Using-Python-Selenium-and-Discord-Bot-API/assets/61945058/b76de76d-ee53-488e-ab2c-280689a3abf3)\n![image](https://github.com/danialjivraj/Shift-Availability-Script-Using-Python-Selenium-and-Discord-Bot-API/assets/61945058/1890493b-247c-4b48-b149-a8001fc2fb7c)\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanialjivraj%2Fbooking-shift-webscraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanialjivraj%2Fbooking-shift-webscraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanialjivraj%2Fbooking-shift-webscraper/lists"}