Scraping for Bus Times

Hi, I am trying to figure out how to scrape bus times for my local public transport provider.

Someone has created an API transperthapi - npm and website Bus Stop Lookup | TransPerth API to grab the data.

I thought about leveraging the api, but to be honest, i’m not sure how do it as I cant find the full api URL, so I have been trying to figure out how to scrape the website.

I need to be able to enter the bus stop number eg 18418 to get the information I need, the website also uses javascript to dynamiclly populate the information which makes things harder. I also havent found a scraping example that shows how I would populate the stop number to get the information.

Can anyone suggest possible solutions?

Thanks

Send the guy an email.

https://transperth.maxrumsey.xyz/api/v1/busTimes?stop_number=18418

Champion! I actually did try to append the bus stop number to the end of the URL to see if that would work but I put /busTimes?18418 which didnt work.

Thanks for your help, that should be very easy to scrape now!

the url is https://136213.mobi/ - anyone has written an updated interface?

Replying to my own comment: I simply added a Webpage card with the relevant url from 136213.mobi.