AI-News-Summariser
AI-News-Summariser copied to clipboard
Any link inputted gets summarized.
bug Description The issue is if we input any link (eg. www.google.com) the summariser thinks it's an article link and summarises it.
To Reproduce Steps to reproduce the behavior:
- Go to https://aisummariser.oxlac.com/ or clone and run the local dev environment.
- copy and paste a nonrelevant link.
- click on go.
- see the non-relevant summary.
Expected behavior Prevent accepting irrelevant links, if the user tries to submit an irrelevant link then show them an error similar to this
Bug Screenshots
Possible approaches
- Try to make a list of all legitimate new article providers and if that link doesn't start with that specific parent URL show the error toast
- A better way is to make a web crawler that finds the legitimacy of an article for better insight check this out https://www.quora.com/Is-there-a-News-API-web-crawler-to-determine-if-URL-is-an-article-or-navigation-page
- Find any existing API's that can return the type of content in the URL and with that information sort out the non article url's