Noam is doing Yoga Logics
Download 253.94 Kb.
|
Noam is doing Yoga Logics
- Bu sahifa navigatsiya:
- Homepage: Logics
- Content pages: Logics
- Screen loader: Logics
Noam is doing Yoga Logics Figma: https://www.figma.com/file/BLV7CnHf1MWm9Vaix1zEWH/Ron-Deutch---Project-(Copy)?node-id=0%3A1 URL data scraper and cronjob Logics: We need to build a data scraper for some Appendix 1 URLs. Data is in raw HTML format in each site, and will scrape yoga lessons from different URLs data: Class name Class date Class hour Class teacher For each URL, there are instructions in the Excel on which data is which. Cronjob will be initiated by the user as an API endpoint when they click the first screen’s button to run all URLs and scrape the data into our DB. Cronjob can only run once a day, meaning that only the first user will initiate the cronjob per Jerusalem timezone, available to run once every 24 hours only, after that will redirect to the other pages and will load the content. Crawler needs to imitate a human and visit a page only once when it runs, and to scrape data only after all APIs in page have finished loading up. Homepage: Logics: Cronjob is initiated and then not initiated according to logics explained in #1. Website is being protected with HTTP security: Username: noam / Noam Password: ronisking123 Content pages: Logics: This is where the scraped data is being showed. Each week is set according to Jerusalem timezone, starts at Sunday and ends at Saturday. Then, dates are shown from right to left, first date on the right is Sunday and final date on the left is Saturday. Date of the current day is auto-selected. Available yoga classes carousel: Each class hour is being compared to one another then creates a list of all available hours per each date. Auto selected hour is the closest to Jerusalem timezone, forward – meaning that if the hour is 20:01 and there is a lesson at 20:00 and 20:15, 20:15 is auto selected. Each carousel card component that has a class in hour selected is built from data you find on the excel and according to this order in the screen: Studio logo Class name Class hour Class teacher Studio address CTA to call (phone number) CTA to website (url to scrape) Each carousel card component that doesn’t have a class in hour selected (black & white) is built from data you find on the excel and according to this order in the screen: Studio logo Regular heading – "לא נמצאו שיעורים" Studio address CTA to call (phone number) CTA to website (url to scrape) Carousel first shows the active cards, then the inactive ones. Both cards types are being sorted A-Z (in Hebrew) according to studio name, meaning that if A studio is in active but Z studio is in active, I will first see Z studio and then A studio, one after the other. Users can select each of the date and hour – fetch data and order it only when new data and date is selected. Screen loader: Logics: Screen loader is running when: Data is being fetched. Cronjob is running Both together Loader’s image is actually a GIF that needs to run and will be sent out. Download 253.94 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling