I have successfully scraped the same site with Ubot Studio and then with Parsehub. I am now trying BAS on the same site to find my favorite program. The site has just two pages, Ajax on both pages. It is for a Boat Reservation site.
Logic
Get Element DOCK_LOCATIONS
For Each Dock Location
For Each Date from today to 90 Days From Now
- Create Date From a DateAdd or Add Seconds (BAS uses Add Seconds with a Day Option) using a DaysToAdd variable set to 1
- Scrape the Date and Dock Location from Page One
- Click the "Next" Button - page loads to Page Two but URL remains the same - no different URL per dock location = dynamic site.
- Scrape the list of boat names
- Scrape the availability status next to the boat name
- Click the (I) button next to the boat name - Ajax modal window comes up with boat details
- Scrape the Boat Type, Boat Capacity
- Combine Date, Dock Location, Boat Name, Availability, Type, Capacity into a single row
- Loop through remaining Boat Names
- Increase DaystoAdd variable by one
Loop Date
Loop Dock
I have successfully scraped this site using the other two programs, but I can't figure out how to keep the (I) button and relevant modal windows, and all of the data together to write it to a file or database. There doesn't seem to be a correlation feature or a way to cycle through lists using the same variable, or some better method. This is pretty basic scraping, so I know I am missing something fundamental.
Can you provide a link to a tutorial that goes into more detail about how to scrape with sub-pages while keeping the data correlated for a final row append to a table? Alternatively, a link to how the database structure in BAS keeps a key that ties Dock Location, Date, Boat Name and (boat details) together?
This program is great, but there is not a lot out there re: English tutorials that cover detailed scraping that I can find.
Thank you!
Rob