khwang0 / 2018F-COMP3111

19 stars 13 forks source link

[Basic 1] Latest Post #46

Open tkong1998 opened 5 years ago

tkong1998 commented 5 years ago

This is quote from the html code from "craigslist":

\

  1. I just found out that instead of the post date, this time class actually stores the last update time of the item (Jun 21). What should I do?
  2. Using the same method provided in the skeleton code, I could only fetch the MonthDate (Jun 21) of the item instead of the whole information (2018-06-21 01:58). 2.1 Do I need to implement another method to fetch the date? 2.2 If the method is fine, how should I handle if two items have the same date? (e.g. both Jun 21).
comp3111ta commented 5 years ago

This is quote from the html code from "craigslist":

  1. I just found out that instead of the post date, this time class actually stores the last update time of the item (Jun 21). What should I do?

You can treat they are the same.

comp3111ta commented 5 years ago
  1. Using the same method provided in the skeleton code, I could only fetch the MonthDate (Jun 21) of the item instead of the whole information (2018-06-21 01:58). 2.1 Do I need to implement another method to fetch the date?

You might need to change the skeleton to complete your specific task.

2.2 If the method is fine, how should I handle if two items have the same date? (e.g. both Jun 21).

You can make your own assumption and document it properly in your readme.