Open Perry-Bright opened 1 month ago
It could also handle duplicate entries
Handling duplicate data is very much possible and we can achieve it but how to make sure that the added data is valid or not.
we can use the fetch API to make a HEAD request to the link. If the response is OK (200-299), we consider the link valid. If the response is not OK, or if there's an error making the request, we consider the link invalid.
but this implementation has some limitations:
after more research, we can solve this issues using more complex crawling algorithms that use a combination of techniques like
Cool, I think it can be done.
I appreciate your positive attitude and approach to challenging tasks. It's great working with you, @mohtasheem135
Data validation on the client-side to prevent inconsistent or invalid data being stored