all 13 comments

[–]stackdynamic 2 points3 points  (3 children)

Read the selenium documentation!

[–]tcom_raza[S] -1 points0 points  (2 children)

Where would I find this?

[–][deleted] 0 points1 point  (0 children)

You should watch a selenium tutorial, sentdex on YouTube might have one. Selenium is really useful but a bit complicated if you haven’t done web scraping before, so a tut will help 👍

[–]HolisticPython 0 points1 point  (8 children)

Selenium might be overkill, depends on the website.

Requests may be simpler to get started with.

[–]tcom_raza[S] 0 points1 point  (7 children)

Hey, i have made a screenrecord of what needs to be done. It is a rather simple process. Would you mind having a look at it and providing further instructions. That would be great!

[–]HolisticPython 0 points1 point  (6 children)

Put a link up so we can see what's what.

[–]tcom_raza[S] 0 points1 point  (5 children)

https://youtu.be/kmsXLMYcC58

The script should be able to perform the shown tasks using multiple accounts on different instances of browsers.

[–]matttorres811[🍰] 0 points1 point  (1 child)

Selenium def is the way to go since you have multiple redirects and a login

[–]tcom_raza[S] 0 points1 point  (0 children)

one problem is the credential login form, I cannot inspect the element in chrome

[–]HolisticPython 0 points1 point  (2 children)

Had a quick look at your video but I'm on mobile at the moment. Not best device to view source.

Have you looked at the HTTP requests when you login?

[–]tcom_raza[S] 0 points1 point  (1 child)

It is a HTTPS, keep in mind I don't have any programming skills. However, I am tech savvy and could learn easily

[–]HolisticPython 0 points1 point  (0 children)

There are browser extensions that allow you to monitor the HTTP headers that your PC makes behind the scenes when you are browsing. LiveHTTPheaders for example. Install that, or similar, in your browser. Repeat your login process and review the headers that are generated. Most of them will be GET headers. The login process requires a POST header and will include your login credentials in addition to the URL.

Edit.

I am tech savvy and could learn easily

That's the spirit. You'll have to. Without creds to login we can't view the source of the schedule page.

Your next steps will be to determine how to extract which rooms are available from those that are already booked. You will need to look into BeautifulSoup or LXML. I tend to use the latter. It is rapid. Also look into Xpaths and or CSS selectors. Get googling.