79644871

Date: 2025-05-30 03:55:51
Score: 0.5
Natty:
Report link

If the website doesn’t offer a public API or RSS feed (like in the case of Sabaragamuwa University), here are a few approaches you can try:

Server-side scraping: Use a tool like axios with cheerio or puppeteer on the backend to fetch and parse the content you want. Then serve that data to your React app through a custom API route.

Embed with iframe (if necessary): This can be a quick solution, but like you said, it's often not responsive or clean. Still, it works for quick demos.

Reach out to the web team: If you’re affiliated with the university, consider asking them to provide an RSS feed or API. Universities often respond positively to student-led tech improvements.

Workaround with a CMS: If this is just a project, you could manually input announcements into something like Firebase or a simple CMS so you have full control over the content shown.

Hope that helps! Let me know if you want help setting up a scraping function or backend route.

Reasons:
  • Whitelisted phrase (-1): Hope that helps
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nilu Thanarasa