sanger96 / Happenings_Team-5_UTD_Senior_Design_Project

UTD Senior Design Project; Group Members: Gaurav Sanger, Jonathan Lam, Robert Dohm, Landin Kasti, Charles Eaton
3 stars 0 forks source link

Create design and plan for Page Scraper implementation #43

Closed LKASTI closed 5 months ago

LKASTI commented 5 months ago
Goal:
    - get all events listed on the page and store them in DB if not already there
    - service should be called in intervals
Event Data Needed:
    - building and room# (if applicable), start & end time, title, description, club name (if applicable)
Web Page:
    - all events located under `<u class="lw lw_event_list">`
    - event titles and calendar links are under:
       ``` <li class="lw lw_event_item">
            <div class="lw_event_item_title">
                <div class="lw_event_item_title">
                    <a href=""> title </a>```

PageItem:

FIELDS:
    String title
    String url

GETTERS/SETTERS

PageScraperService: (this could be more efficient if we knew which page items were newly added or just updated)

PageScraperController:

FIELDS:
    locationService
    appointmentService
    eventService
    pageScraperService

METHODs:
    checkForEvents()
        call didPageUpdate() return string if it didnt
        call getNewEvents() and store in List of Events
        for each event in list
            post location, flush
            post appointment, flush
            post event, flush
LKASTI commented 5 months ago

Edited to reflect changes made today

LKASTI commented 5 months ago

The design for the page scraper seems complete. The base code including comments for each method has been pushed to my branch 'Landin' under the directory SpringBootBackend\src\main\java\com\services\scraper. The design should be discussed amongst the back-end team at some point. Then issues can be created and posted on the project board for methods.