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.